{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/valotcg/json-schema/valotcg-body-create-scan-vision-v1-scans-post-schema.json",
  "title": "Body_create_scan_vision_v1_scans_post",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/valotcg-scans-api-openapi.yml#/components/schemas/Body_create_scan_vision_v1_scans_post",
  "properties": {
    "image": {
      "type": "string",
      "format": "binary",
      "title": "Image",
      "description": "JPEG, PNG or WebP photo, at most 8 MB and 40 megapixels, shortest side at least 480 px."
    },
    "game": {
      "type": "string",
      "pattern": "^[a-z0-9_]{1,64}$",
      "title": "Game",
      "description": "Valo.Data game slug, e.g. `pokemon`."
    },
    "language": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "fr",
            "en",
            "ja",
            "zh",
            "de",
            "es",
            "it",
            "pt"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Language",
      "description": "Language of the card, used as a filter. Omitted: on `/scans`, the language printed on the card decides among the open ones (every open language is searched when its text tells nothing); on `/scans/multi`, every open language is searched."
    }
  },
  "type": "object",
  "required": [
    "image",
    "game"
  ]
}