addedOutput schema / properties / product / properties / commercial
Added value: +{
+ "additionalProperties": false,
+ "description": "Commercial interpretation prevails over legacy fields when format.state is known. Lengths are metadata, not stock quantities or a guarantee that a requested Dynamic order can be supplied. Unknown retained-snapshot data must not be inferred.",
+ "properties": {
+ "custom_cut_allowed": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "cut_increment": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "known"
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "label",
+ "mm"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "unparsed"
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "label"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "enum": [
+ "missing",
+ "not_applicable",
+ "unknown"
+ ]
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "label"
+ ]
+ },
+ {
+ "required": [
+ "mm"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "unparsed"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "required": [
+ "mm"
+ ]
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "conflicting"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "label"
+ ]
+ },
+ {
+ "required": [
+ "mm"
+ ]
+ }
+ ]
+ },
+ "required": [
+ "labels"
+ ]
+ }
+ },
+ {
+ "else": {
+ "not": {
+ "required": [
+ "labels"
+ ]
+ }
+ },
+ "if": {
+ "properties": {
+ "state": {
+ "const": "conflicting"
+ }
+ }
+ }
+ }
+ ],
+ "description": "Explicit feature 41 only. No default step or unverified arithmetic origin is implied.",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 2,
+ "type": "array"
+ },
+ "mm": {
+ "maximum": 4294967295,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "known",
+ "missing",
+ "unparsed",
+ "conflicting",
+ "not_applicable",
+ "unknown"
+ ]
+ }
+ },
+ "required": [
+ "state"
+ ],
+ "type": "object"
+ },
+ "dimensions": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "known"
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "label",
+ "sides_mm"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "unparsed"
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "label"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "enum": [
+ "missing",
+ "not_applicable",
+ "unknown"
+ ]
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "label"
+ ]
+ },
+ {
+ "required": [
+ "sides_mm"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "unparsed"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "required": [
+ "sides_mm"
+ ]
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "conflicting"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "label"
+ ]
+ },
+ {
+ "required": [
+ "sides_mm"
+ ]
+ }
+ ]
+ },
+ "required": [
+ "labels"
+ ]
+ }
+ },
+ {
+ "else": {
+ "not": {
+ "required": [
+ "labels"
+ ]
+ }
+ },
+ "if": {
+ "properties": {
+ "state": {
+ "const": "conflicting"
+ }
+ }
+ }
+ }
+ ],
+ "description": "Original feature 18 label and ordered sides in integer mm; axis orientation is not inferred.",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 2,
+ "type": "array"
+ },
+ "sides_mm": {
+ "items": {
+ "maximum": 4294967295,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "maxItems": 2,
+ "minItems": 2,
+ "type": "array"
+ },
+ "state": {
+ "enum": [
+ "known",
+ "missing",
+ "unparsed",
+ "conflicting",
+ "not_applicable",
+ "unknown"
+ ]
+ }
+ },
+ "required": [
+ "state"
+ ],
+ "type": "object"
+ },
+ "fixed_length": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "known"
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "label",
+ "mm"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "unparsed"
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "label"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "enum": [
+ "missing",
+ "not_applicable",
+ "unknown"
+ ]
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "label"
+ ]
+ },
+ {
+ "required": [
+ "mm"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "unparsed"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "required": [
+ "mm"
+ ]
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "conflicting"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "label"
+ ]
+ },
+ {
+ "required": [
+ "mm"
+ ]
+ }
+ ]
+ },
+ "required": [
+ "labels"
+ ]
+ }
+ },
+ {
+ "else": {
+ "not": {
+ "required": [
+ "labels"
+ ]
+ }
+ },
+ "if": {
+ "properties": {
+ "state": {
+ "const": "conflicting"
+ }
+ }
+ }
+ }
+ ],
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 2,
+ "type": "array"
+ },
+ "mm": {
+ "maximum": 4294967295,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "known",
+ "missing",
+ "unparsed",
+ "conflicting",
+ "not_applicable",
+ "unknown"
+ ]
+ }
+ },
+ "required": [
+ "state"
+ ],
+ "type": "object"
+ },
+ "format": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "by_length",
+ "fat_quarter",
+ "remnant",
+ "pack",
+ null
+ ]
+ },
+ "label": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 2,
+ "type": "array"
+ },
+ "state": {
+ "enum": [
+ "known",
+ "missing",
+ "unparsed",
+ "conflicting",
+ "unknown"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "label",
+ "state"
+ ],
+ "type": "object"
+ },
+ "minimum_cut": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "known"
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "label",
+ "mm"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "unparsed"
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "label"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "enum": [
+ "missing",
+ "not_applicable",
+ "unknown"
+ ]
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "label"
+ ]
+ },
+ {
+ "required": [
+ "mm"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "unparsed"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "required": [
+ "mm"
+ ]
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "state": {
+ "const": "conflicting"
+ }
+ }
+ },
+ "then": {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "label"
+ ]
+ },
+ {
+ "required": [
+ "mm"
+ ]
+ }
+ ]
+ },
+ "required": [
+ "labels"
+ ]
+ }
+ },
+ {
+ "else": {
+ "not": {
+ "required": [
+ "labels"
+ ]
+ }
+ },
+ "if": {
+ "properties": {
+ "state": {
+ "const": "conflicting"
+ }
+ }
+ }
+ }
+ ],
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 2,
+ "type": "array"
+ },
+ "mm": {
+ "maximum": 4294967295,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "known",
+ "missing",
+ "unparsed",
+ "conflicting",
+ "not_applicable",
+ "unknown"
+ ]
+ }
+ },
+ "required": [
+ "state"
+ ],
+ "type": "object"
+ },
+ "pack_definition": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "else": {
+ "not": {
+ "anyOf": [
+ {
+ "required": [
+ "distinct_components"
+ ]
+ },
+ {
+ "required": [
+ "total_component_units"
+ ]
+ }
+ ]
+ }
+ },
+ "if": {
+ "properties": {
+ "state": {
+ "const": "verified"
+ }
+ }
+ },
+ "then": {
+ "required": [
+ "distinct_components",
+ "total_component_units"
+ ]
+ }
+ }
+ ],
+ "properties": {
+ "distinct_components": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "verified",
+ "unknown",
+ "not_applicable"
+ ]
+ },
+ "total_component_units": {
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "state"
+ ],
+ "type": "object"
+ },
+ "sale_mode": {
+ "enum": [
+ "length",
+ "unit",
+ null
+ ]
+ },
+ "whole_item_required": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "format",
+ "sale_mode",
+ "custom_cut_allowed",
+ "whole_item_required",
+ "minimum_cut",
+ "cut_increment",
+ "fixed_length",
+ "dimensions",
+ "pack_definition"
+ ],
+ "type": "object"
+}