changedInput schema / properties / checks / items / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "paths": {
- "items": {
- "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "maxItems": 50,
- "minItems": 1,
- "type": "array"
- },
- "type": {
- "const": "required_fields"
- }
- },
- "required": [
- "type",
- "paths"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "additionalProperties": {
- "enum": [
- "string",
- "number",
- "integer",
- "boolean",
- "object",
- "array",
- "null"
- ]
- },
- "maxProperties": 50,
- "minProperties": 1,
- "type": "object"
- },
- "type": {
- "const": "types"
- }
- },
- "required": [
- "type",
- "fields"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "field": {
- "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "format": {
- "enum": [
- "email",
- "iso_date",
- "iso_datetime",
- "url",
- "uuid",
- "e164_phone",
- "currency_code",
- "integer_string"
- ]
- },
- "type": {
- "const": "format"
- }
- },
- "required": [
- "type",
- "field",
- "format"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "parts": {
- "items": {
- "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "maxItems": 20,
- "minItems": 1,
- "type": "array"
- },
- "tolerance": {
- "default": 0.0001,
- "maximum": 1000000,
- "minimum": 0,
- "type": "number"
- },
- "total": {
- "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "sum"
- }
- },
- "required": [
- "type",
- "parts",
- "total"
- ],
- "type": "object"
- },
- {
- "description": "Existing types, unchanged: url_contains, json_schema, equals, regex, numeric, onchain.",
- "properties": {
- "type": {
- "enum": [
- "url_contains",
- "json_schema",
- "equals",
- "regex",
- "numeric",
- "onchain"
- ]
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "paths": {
+ "items": {
+ "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 50,
+ "minItems": 1,
+ "type": "array"
+ },
+ "type": {
+ "const": "required_fields"
+ }
+ },
+ "required": [
+ "type",
+ "paths"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "additionalProperties": {
+ "enum": [
+ "string",
+ "number",
+ "integer",
+ "boolean",
+ "object",
+ "array",
+ "null"
+ ]
+ },
+ "maxProperties": 50,
+ "minProperties": 1,
+ "type": "object"
+ },
+ "type": {
+ "const": "types"
+ }
+ },
+ "required": [
+ "type",
+ "fields"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "format": {
+ "enum": [
+ "email",
+ "iso_date",
+ "iso_datetime",
+ "url",
+ "uuid",
+ "e164_phone",
+ "currency_code",
+ "integer_string"
+ ]
+ },
+ "type": {
+ "const": "format"
+ }
+ },
+ "required": [
+ "type",
+ "field",
+ "format"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "parts": {
+ "items": {
+ "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 20,
+ "minItems": 1,
+ "type": "array"
+ },
+ "tolerance": {
+ "default": 0.0001,
+ "maximum": 1000000,
+ "minimum": 0,
+ "type": "number"
+ },
+ "total": {
+ "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "sum"
+ }
+ },
+ "required": [
+ "type",
+ "parts",
+ "total"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Duplicate invoice check (needs an API key, at most 1 per call). Compares this invoice with ones the same key recorded earlier. Stores keyed HMAC fingerprints only, and only when store is true.",
+ "properties": {
+ "amount_path": {
+ "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "currency_path": {
+ "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "date_path": {
+ "description": "Dot path to a YYYY-MM-DD invoice date. Enables the same vendor, amount and date rule.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "invoice_id_path": {
+ "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "retain_days": {
+ "default": 180,
+ "maximum": 400,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "store": {
+ "default": false,
+ "description": "Record this invoice's fingerprints so later calls can match it.",
+ "type": "boolean"
+ },
+ "type": {
+ "const": "duplicate"
+ },
+ "vendor_path": {
+ "description": "Dot path into the output JSON, at most 8 segments, e.g. invoice.total or items.0.id.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "window_days": {
+ "default": 3,
+ "maximum": 30,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "type",
+ "vendor_path",
+ "invoice_id_path",
+ "amount_path"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Existing types, unchanged: url_contains, json_schema, equals, regex, numeric, onchain.",
+ "properties": {
+ "type": {
+ "enum": [
+ "url_contains",
+ "json_schema",
+ "equals",
+ "regex",
+ "numeric",
+ "onchain"
+ ]
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+]