hyf

Context-aware query service for Radroots
git clone https://radroots.dev/git/hyf.git
Log | Files | Refs | README | LICENSE

farm_update_interpret.request.schema.json (5904B)


      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": "farm_update.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         "prior_records": {
    154           "type": "array",
    155           "items": {
    156             "type": "object",
    157             "properties": {
    158               "record_id": {
    159                 "type": "string",
    160                 "minLength": 64,
    161                 "maxLength": 64,
    162                 "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
    163               },
    164               "revision": {
    165                 "type": "string",
    166                 "minLength": 1,
    167                 "pattern": "\\S"
    168               },
    169               "participant_id": {
    170                 "type": "string",
    171                 "minLength": 64,
    172                 "maxLength": 64,
    173                 "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
    174               },
    175               "workspace_id": {
    176                 "type": "string",
    177                 "minLength": 64,
    178                 "maxLength": 64,
    179                 "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
    180               }
    181             },
    182             "required": [
    183               "record_id",
    184               "revision",
    185               "participant_id",
    186               "workspace_id"
    187             ],
    188             "additionalProperties": false
    189           },
    190           "maxItems": 128
    191         }
    192       },
    193       "required": [
    194         "source",
    195         "references"
    196       ],
    197       "additionalProperties": false
    198     }
    199   },
    200   "required": [
    201     "version",
    202     "request_id",
    203     "capability",
    204     "context",
    205     "input"
    206   ],
    207   "additionalProperties": false,
    208   "$schema": "https://json-schema.org/draft/2020-12/schema",
    209   "$id": "hyf_ops_v3/farm_update_interpret.request.schema.json",
    210   "$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."
    211 }