{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/schemasure/json-schema/schemasure-image-extract-request-schema.json",
  "title": "ImageExtractRequest",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/schemasure-image-extraction-x402-v2-api-openapi.yml#/components/schemas/ImageExtractRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "image",
    "schema"
  ],
  "properties": {
    "image": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "data",
        "mimeType"
      ],
      "properties": {
        "data": {
          "type": "string",
          "minLength": 1,
          "contentEncoding": "base64",
          "description": "Base64-encoded image bytes without a data-URL prefix."
        },
        "mimeType": {
          "type": "string",
          "enum": [
            "image/png",
            "image/jpeg",
            "image/webp"
          ],
          "description": "Declared image media type; it must match the decoded file signature."
        }
      }
    },
    "schema": {
      "type": "object",
      "description": "JSON Schema (draft 2020-12) that the returned `data` is guaranteed to satisfy."
    },
    "options": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "maxRepairs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 5,
          "description": "Max validate->re-prompt repair iterations."
        },
        "strict": {
          "type": "boolean",
          "default": true,
          "description": "Drop fields not present in the schema."
        }
      }
    }
  }
}