changedOutput schema / properties / result / properties / ocr / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "content_trust": {
- "const": "untrusted_document",
- "type": "string"
- },
- "created_at": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "model": {
- "maxLength": 120,
- "type": "string"
- },
- "pages": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "attempts": {
- "maximum": 3,
- "minimum": 0,
- "type": "integer"
- },
- "completed_at": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "error_code": {
- "anyOf": [
- {
- "enum": [
- "provider_unavailable",
- "invalid_output",
- "source_invalid",
- "timeout",
- "access_revoked",
- "worker_failed"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "is_blank": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "model": {
- "anyOf": [
- {
- "maxLength": 120,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "page_id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "page_number": {
- "maximum": 20,
- "minimum": 1,
- "type": "integer"
- },
- "provenance": {
- "additionalProperties": false,
- "properties": {
- "extracted_at": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "kind": {
- "const": "template_ocr",
- "type": "string"
- },
- "source_sha256": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "template_version": {
- "const": "mojave-solar-v1",
- "type": "string"
- },
- "transcript_sha256": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- }
- },
- "required": [
- "kind",
- "template_version",
- "source_sha256",
- "transcript_sha256",
- "extracted_at"
- ],
- "type": "object"
- },
- "provider": {
- "anyOf": [
- {
- "maxLength": 120,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "source_kind": {
- "enum": [
- "envelope",
- "letter"
- ],
- "type": "string"
- },
- "source_sha256": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "status": {
- "enum": [
- "queued",
- "processing",
- "ready",
- "needs_review",
- "failed"
- ],
- "type": "string"
- },
- "text": {
- "anyOf": [
- {
- "maxLength": 32000,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "uncertain_spans": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "maxLength": 500,
- "type": "string"
- },
- "text": {
- "maxLength": 500,
- "type": "string"
- }
- },
- "required": [
- "text",
- "reason"
- ],
- "type": "object"
- },
- "maxItems": 100,
- "type": "array"
- }
- },
- "required": [
- "page_id",
- "page_number",
- "source_sha256",
- "status",
- "text",
- "is_blank",
- "uncertain_spans",
- "provider",
- "model",
- "completed_at",
- "attempts",
- "error_code"
- ],
- "type": "object"
- },
- "maxItems": 20,
- "minItems": 1,
- "type": "array"
- },
- "status": {
- "enum": [
- "queued",
- "processing",
- "ready",
- "needs_review",
- "failed"
- ],
- "type": "string"
- }
- },
- "required": [
- "content_trust",
- "id",
- "status",
- "model",
- "created_at",
- "pages"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "content_trust": {
+ "const": "untrusted_document",
+ "type": "string"
+ },
+ "created_at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "model": {
+ "anyOf": [
+ {
+ "maxLength": 120,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "pages": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "attempts": {
+ "maximum": 3,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "completed_at": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "error_code": {
+ "anyOf": [
+ {
+ "enum": [
+ "provider_unavailable",
+ "invalid_output",
+ "source_invalid",
+ "timeout",
+ "access_revoked",
+ "worker_failed"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "is_blank": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "model": {
+ "anyOf": [
+ {
+ "maxLength": 120,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "page_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "page_number": {
+ "maximum": 20,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "provenance": {
+ "additionalProperties": false,
+ "properties": {
+ "extracted_at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "kind": {
+ "const": "template_ocr",
+ "type": "string"
+ },
+ "source_sha256": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "template_version": {
+ "const": "mojave-solar-v1",
+ "type": "string"
+ },
+ "transcript_sha256": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "template_version",
+ "source_sha256",
+ "transcript_sha256",
+ "extracted_at"
+ ],
+ "type": "object"
+ },
+ "provider": {
+ "anyOf": [
+ {
+ "maxLength": 120,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "source_kind": {
+ "enum": [
+ "envelope",
+ "letter"
+ ],
+ "type": "string"
+ },
+ "source_sha256": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "queued",
+ "processing",
+ "ready",
+ "needs_review",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "maxLength": 32000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "uncertain_spans": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "maxLength": 500,
+ "type": "string"
+ },
+ "text": {
+ "maxLength": 500,
+ "type": "string"
+ }
+ },
+ "required": [
+ "text",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "maxItems": 100,
+ "type": "array"
+ }
+ },
+ "required": [
+ "page_id",
+ "page_number",
+ "source_sha256",
+ "status",
+ "text",
+ "is_blank",
+ "uncertain_spans",
+ "provider",
+ "model",
+ "completed_at",
+ "attempts",
+ "error_code"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "minItems": 1,
+ "type": "array"
+ },
+ "status": {
+ "enum": [
+ "queued",
+ "processing",
+ "ready",
+ "needs_review",
+ "failed"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "content_trust",
+ "id",
+ "status",
+ "model",
+ "created_at",
+ "pages"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]