{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/good-grants/json-schema/good-grants-upload-result-schema.json",
  "title": "UploadResult",
  "description": "Receipt returned when a file is uploaded to a category, chapter, application, or user field.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/good-grants-applications-api-openapi.yml#/components/schemas/UploadResult",
  "type": "object",
  "properties": {
    "filename": {
      "type": "string",
      "description": "Original filename of the uploaded file, including the extension."
    },
    "token": {
      "type": "string",
      "description": "Opaque identifier for the stored file, used as the `{token}` path parameter on `/file/{token}`."
    },
    "link": {
      "type": "string",
      "format": "uri",
      "description": "Canonical URL for retrieving the uploaded file."
    }
  }
}