buyer_request_interpret.request.schema.json (4759B)
1 { 2 "type": "object", 3 "properties": { 4 "version": { 5 "type": "integer", 6 "const": 1 7 }, 8 "request_id": { 9 "type": "string", 10 "minLength": 1, 11 "pattern": "\\S" 12 }, 13 "trace_id": { 14 "type": "string", 15 "minLength": 1, 16 "pattern": "\\S" 17 }, 18 "capability": { 19 "const": "buyer_request.interpret" 20 }, 21 "context": { 22 "$ref": "common.schema.json#/$defs/context" 23 }, 24 "input": { 25 "type": "object", 26 "properties": { 27 "source": { 28 "$ref": "common.schema.json#/$defs/source" 29 }, 30 "references": { 31 "type": "object", 32 "properties": { 33 "taxonomy": { 34 "type": "object", 35 "properties": { 36 "version": { 37 "type": "string", 38 "minLength": 1, 39 "pattern": "\\S" 40 }, 41 "provenance": { 42 "type": "string", 43 "minLength": 1, 44 "pattern": "\\S" 45 }, 46 "products": { 47 "type": "array", 48 "items": { 49 "type": "object", 50 "properties": { 51 "catalogue_id": { 52 "type": "string", 53 "minLength": 1, 54 "pattern": "\\S" 55 }, 56 "terms": { 57 "type": "array", 58 "items": { 59 "type": "string", 60 "minLength": 1, 61 "pattern": "\\S" 62 }, 63 "maxItems": 128 64 } 65 }, 66 "required": [ 67 "catalogue_id", 68 "terms" 69 ], 70 "additionalProperties": false 71 }, 72 "maxItems": 128 73 } 74 }, 75 "required": [ 76 "version", 77 "provenance", 78 "products" 79 ], 80 "additionalProperties": false 81 }, 82 "normalization": { 83 "type": "object", 84 "properties": { 85 "version": { 86 "type": "string", 87 "minLength": 1, 88 "pattern": "\\S" 89 }, 90 "provenance": { 91 "type": "string", 92 "minLength": 1, 93 "pattern": "\\S" 94 }, 95 "currency_registry": { 96 "const": "radroots.currency_registry.v1" 97 } 98 }, 99 "required": [ 100 "version", 101 "provenance", 102 "currency_registry" 103 ], 104 "additionalProperties": false 105 } 106 }, 107 "required": [ 108 "taxonomy", 109 "normalization" 110 ], 111 "additionalProperties": false 112 }, 113 "clarification": { 114 "type": "object", 115 "properties": { 116 "source_id": { 117 "type": "string", 118 "minLength": 64, 119 "maxLength": 64, 120 "pattern": "^[0-9a-f]{64}(?![\\s\\S])" 121 }, 122 "revision": { 123 "type": "string", 124 "minLength": 1, 125 "pattern": "\\S" 126 }, 127 "target_field": { 128 "type": "string", 129 "minLength": 1, 130 "pattern": "\\S" 131 }, 132 "text": { 133 "type": "string", 134 "minLength": 1, 135 "pattern": "\\S", 136 "maxLength": 1048576 137 }, 138 "expected_revision": { 139 "type": "string", 140 "minLength": 1, 141 "pattern": "\\S" 142 } 143 }, 144 "required": [ 145 "source_id", 146 "revision", 147 "target_field", 148 "text", 149 "expected_revision" 150 ], 151 "additionalProperties": false 152 } 153 }, 154 "required": [ 155 "source", 156 "references" 157 ], 158 "additionalProperties": false 159 } 160 }, 161 "required": [ 162 "version", 163 "request_id", 164 "capability", 165 "context", 166 "input" 167 ], 168 "additionalProperties": false, 169 "$schema": "https://json-schema.org/draft/2020-12/schema", 170 "$id": "hyf_ops_v3/buyer_request_interpret.request.schema.json", 171 "$comment": "D57 hyf_ops_v3 pre-activation contract. No business write or trusted context can be minted by source/model text. Full semantic input-use and SDK revalidation remain required." 172 }