{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/myocr-app/json-schema/myocr-app-success-response-schema.json",
  "title": "SuccessResponse",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/myocr-app-openapi.yml#/components/schemas/SuccessResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object"
    },
    "request_id": {
      "type": "string"
    },
    "warnings": {
      "type": "array",
      "description": "Optional and additive — present only when there is something worth telling you.\nThe conversion itself is unaffected: ignore the field and the response is what it\nhas always been. Today the only code is `PAGE_RANGE_SUGGESTED`, returned when a\nsingle-document model (invoice, receipt, business_card) is asked to read a PDF of\nmore than 3 pages without `page_range`. File responses (xlsx/csv/txt) carry the\ncode in the `X-MyOCR-Warning` header instead, since they have no JSON body.\n",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}