hyf

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

common.schema.json (81211B)


      1 {
      2   "$schema": "https://json-schema.org/draft/2020-12/schema",
      3   "$id": "hyf_ops_v3/common.schema.json",
      4   "$comment": "D57: advisory boundary only. ActorRef/identifiers are descriptors, not authentication. Quantity/Money are exact public SDK wire mirrors; SDK owns authoritative feasibility/arithmetic/conservation. Span offsets are UTF-8 bytes; semantic use/revision validation is mandatory.",
      5   "$defs": {
      6     "versions": {
      7       "type": "object",
      8       "properties": {
      9         "schema": {
     10           "const": "hyf_ops_v3"
     11         },
     12         "taxonomy": {
     13           "type": "string",
     14           "minLength": 1,
     15           "pattern": "\\S"
     16         },
     17         "normalization": {
     18           "type": "string",
     19           "minLength": 1,
     20           "pattern": "\\S"
     21         },
     22         "review_policy": {
     23           "type": "string",
     24           "minLength": 1,
     25           "pattern": "\\S"
     26         },
     27         "ranking_policy": {
     28           "type": "string",
     29           "minLength": 1,
     30           "pattern": "\\S"
     31         },
     32         "question_bundle": {
     33           "type": "string",
     34           "minLength": 1,
     35           "pattern": "\\S"
     36         },
     37         "model": {
     38           "const": "jev-1.14.0"
     39         }
     40       },
     41       "required": [
     42         "schema",
     43         "taxonomy",
     44         "normalization",
     45         "review_policy",
     46         "ranking_policy",
     47         "question_bundle",
     48         "model"
     49       ],
     50       "additionalProperties": false
     51     },
     52     "actor": {
     53       "type": "object",
     54       "properties": {
     55         "participant": {
     56           "type": "string",
     57           "minLength": 64,
     58           "maxLength": 64,
     59           "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
     60         },
     61         "role": {
     62           "type": "string",
     63           "enum": [
     64             "seller",
     65             "buyer",
     66             "coordinator"
     67           ]
     68         },
     69         "organization": {
     70           "anyOf": [
     71             {
     72               "type": "string",
     73               "minLength": 64,
     74               "maxLength": 64,
     75               "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
     76             },
     77             {
     78               "type": "null"
     79             }
     80           ]
     81         },
     82         "grant_id": {
     83           "anyOf": [
     84             {
     85               "type": "string",
     86               "minLength": 64,
     87               "maxLength": 64,
     88               "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
     89             },
     90             {
     91               "type": "null"
     92             }
     93           ]
     94         }
     95       },
     96       "required": [
     97         "participant",
     98         "role",
     99         "organization",
    100         "grant_id"
    101       ],
    102       "additionalProperties": false
    103     },
    104     "context": {
    105       "type": "object",
    106       "properties": {
    107         "consumer": {
    108           "type": "string",
    109           "minLength": 1,
    110           "pattern": "\\S"
    111         },
    112         "execution_mode_preference": {
    113           "type": "string",
    114           "enum": [
    115             "deterministic",
    116             "assisted"
    117           ]
    118         },
    119         "deadline_ms": {
    120           "type": "integer",
    121           "minimum": 1,
    122           "maximum": 2147483647
    123         },
    124         "evaluation_time": {
    125           "$ref": "#/$defs/unix_seconds"
    126         },
    127         "timezone": {
    128           "type": "string",
    129           "minLength": 1,
    130           "pattern": "\\S"
    131         },
    132         "locale": {
    133           "type": "string",
    134           "minLength": 1,
    135           "pattern": "\\S"
    136         },
    137         "versions": {
    138           "$ref": "#/$defs/versions"
    139         },
    140         "return_provenance": {
    141           "type": "boolean"
    142         },
    143         "actor": {
    144           "$ref": "#/$defs/actor"
    145         },
    146         "workspace_id": {
    147           "type": "string",
    148           "minLength": 64,
    149           "maxLength": 64,
    150           "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
    151         }
    152       },
    153       "required": [
    154         "evaluation_time",
    155         "versions",
    156         "actor",
    157         "workspace_id"
    158       ],
    159       "additionalProperties": false
    160     },
    161     "source": {
    162       "type": "object",
    163       "properties": {
    164         "source_id": {
    165           "type": "string",
    166           "minLength": 64,
    167           "maxLength": 64,
    168           "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
    169         },
    170         "revision": {
    171           "type": "string",
    172           "minLength": 1,
    173           "pattern": "\\S"
    174         },
    175         "text": {
    176           "type": "string",
    177           "minLength": 1,
    178           "pattern": "\\S",
    179           "maxLength": 1048576
    180         },
    181         "source_time": {
    182           "$ref": "#/$defs/unix_seconds"
    183         },
    184         "timezone": {
    185           "type": "string",
    186           "minLength": 1,
    187           "pattern": "\\S"
    188         },
    189         "locale": {
    190           "type": "string",
    191           "minLength": 1,
    192           "pattern": "\\S"
    193         },
    194         "participant_id": {
    195           "type": "string",
    196           "minLength": 64,
    197           "maxLength": 64,
    198           "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
    199         },
    200         "ingestion_time": {
    201           "$ref": "#/$defs/unix_seconds"
    202         }
    203       },
    204       "required": [
    205         "source_id",
    206         "revision",
    207         "text",
    208         "source_time",
    209         "participant_id"
    210       ],
    211       "additionalProperties": false
    212     },
    213     "identity": {
    214       "type": "object",
    215       "properties": {
    216         "source_id": {
    217           "type": "string",
    218           "minLength": 64,
    219           "maxLength": 64,
    220           "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
    221         },
    222         "revision": {
    223           "type": "string",
    224           "minLength": 1,
    225           "pattern": "\\S"
    226         }
    227       },
    228       "required": [
    229         "source_id",
    230         "revision"
    231       ],
    232       "additionalProperties": false
    233     },
    234     "decimal": {
    235       "type": "string",
    236       "maxLength": 19,
    237       "pattern": "^(?:0|[1-9][0-9]{0,11}|0\\.[0-9]{0,5}[1-9]|(?=[0-9.]{1,13}(?![\\s\\S]))[1-9][0-9]{0,10}\\.[0-9]{0,5}[1-9])(?![\\s\\S])"
    238     },
    239     "quantity": {
    240       "type": "object",
    241       "properties": {
    242         "amount": {
    243           "$ref": "#/$defs/decimal"
    244         },
    245         "unit": {
    246           "type": "string",
    247           "enum": [
    248             "g",
    249             "kg",
    250             "mL",
    251             "L",
    252             "each"
    253           ]
    254         }
    255       },
    256       "required": [
    257         "amount",
    258         "unit"
    259       ],
    260       "additionalProperties": false,
    261       "allOf": [
    262         {
    263           "if": {
    264             "properties": {
    265               "unit": {
    266                 "const": "each"
    267               }
    268             },
    269             "required": [
    270               "unit"
    271             ]
    272           },
    273           "then": {
    274             "properties": {
    275               "amount": {
    276                 "pattern": "^(?:0|[1-9][0-9]{0,11})(?![\\s\\S])"
    277               }
    278             }
    279           }
    280         }
    281       ]
    282     },
    283     "reported_quantity": {
    284       "oneOf": [
    285         {
    286           "type": "object",
    287           "properties": {
    288             "state": {
    289               "const": "known"
    290             },
    291             "quantity": {
    292               "$ref": "#/$defs/quantity"
    293             },
    294             "qualifier": {
    295               "type": "string",
    296               "enum": [
    297                 "exact",
    298                 "approximate"
    299               ]
    300             }
    301           },
    302           "required": [
    303             "state",
    304             "quantity",
    305             "qualifier"
    306           ],
    307           "additionalProperties": false
    308         },
    309         {
    310           "type": "object",
    311           "properties": {
    312             "state": {
    313               "const": "unknown"
    314             },
    315             "quantity": {
    316               "type": "null"
    317             },
    318             "qualifier": {
    319               "type": "string",
    320               "enum": [
    321                 "exact",
    322                 "approximate"
    323               ]
    324             }
    325           },
    326           "required": [
    327             "state",
    328             "quantity",
    329             "qualifier"
    330           ],
    331           "additionalProperties": false
    332         }
    333       ]
    334     },
    335     "money": {
    336       "type": "object",
    337       "properties": {
    338         "currency": {
    339           "type": "string",
    340           "enum": [
    341             "AED",
    342             "AFN",
    343             "ALL",
    344             "AMD",
    345             "AOA",
    346             "ARS",
    347             "AUD",
    348             "AWG",
    349             "AZN",
    350             "BAM",
    351             "BBD",
    352             "BDT",
    353             "BHD",
    354             "BIF",
    355             "BMD",
    356             "BND",
    357             "BOB",
    358             "BOV",
    359             "BRL",
    360             "BSD",
    361             "BTN",
    362             "BWP",
    363             "BYN",
    364             "BZD",
    365             "CAD",
    366             "CDF",
    367             "CHE",
    368             "CHF",
    369             "CHW",
    370             "CLF",
    371             "CLP",
    372             "CNY",
    373             "COP",
    374             "COU",
    375             "CRC",
    376             "CUP",
    377             "CVE",
    378             "CZK",
    379             "DJF",
    380             "DKK",
    381             "DOP",
    382             "DZD",
    383             "EGP",
    384             "ERN",
    385             "ETB",
    386             "EUR",
    387             "FJD",
    388             "FKP",
    389             "GBP",
    390             "GEL",
    391             "GHS",
    392             "GIP",
    393             "GMD",
    394             "GNF",
    395             "GTQ",
    396             "GYD",
    397             "HKD",
    398             "HNL",
    399             "HTG",
    400             "HUF",
    401             "IDR",
    402             "ILS",
    403             "INR",
    404             "IQD",
    405             "IRR",
    406             "ISK",
    407             "JMD",
    408             "JOD",
    409             "JPY",
    410             "KES",
    411             "KGS",
    412             "KHR",
    413             "KMF",
    414             "KPW",
    415             "KRW",
    416             "KWD",
    417             "KYD",
    418             "KZT",
    419             "LAK",
    420             "LBP",
    421             "LKR",
    422             "LRD",
    423             "LSL",
    424             "LYD",
    425             "MAD",
    426             "MDL",
    427             "MGA",
    428             "MKD",
    429             "MMK",
    430             "MNT",
    431             "MOP",
    432             "MRU",
    433             "MUR",
    434             "MVR",
    435             "MWK",
    436             "MXN",
    437             "MXV",
    438             "MYR",
    439             "MZN",
    440             "NAD",
    441             "NGN",
    442             "NIO",
    443             "NOK",
    444             "NPR",
    445             "NZD",
    446             "OMR",
    447             "PAB",
    448             "PEN",
    449             "PGK",
    450             "PHP",
    451             "PKR",
    452             "PLN",
    453             "PYG",
    454             "QAR",
    455             "RON",
    456             "RSD",
    457             "RUB",
    458             "RWF",
    459             "SAR",
    460             "SBD",
    461             "SCR",
    462             "SDG",
    463             "SEK",
    464             "SGD",
    465             "SHP",
    466             "SLE",
    467             "SOS",
    468             "SRD",
    469             "SSP",
    470             "STN",
    471             "SVC",
    472             "SYP",
    473             "SZL",
    474             "THB",
    475             "TJS",
    476             "TMT",
    477             "TND",
    478             "TOP",
    479             "TRY",
    480             "TTD",
    481             "TWD",
    482             "TZS",
    483             "UAH",
    484             "UGX",
    485             "USD",
    486             "USN",
    487             "UYI",
    488             "UYU",
    489             "UYW",
    490             "UZS",
    491             "VED",
    492             "VES",
    493             "VND",
    494             "VUV",
    495             "WST",
    496             "XAD",
    497             "XAF",
    498             "XCD",
    499             "XCG",
    500             "XOF",
    501             "XPF",
    502             "YER",
    503             "ZAR",
    504             "ZMW",
    505             "ZWG"
    506           ]
    507         },
    508         "minor": {
    509           "type": "string",
    510           "maxLength": 15,
    511           "pattern": "^(?:0|[1-9][0-9]{0,14})(?![\\s\\S])"
    512         },
    513         "exponent": {
    514           "type": "integer",
    515           "minimum": 0,
    516           "maximum": 4
    517         }
    518       },
    519       "required": [
    520         "currency",
    521         "minor",
    522         "exponent"
    523       ],
    524       "additionalProperties": false,
    525       "allOf": [
    526         {
    527           "if": {
    528             "properties": {
    529               "currency": {
    530                 "const": "AED"
    531               }
    532             },
    533             "required": [
    534               "currency"
    535             ]
    536           },
    537           "then": {
    538             "properties": {
    539               "exponent": {
    540                 "const": 2
    541               }
    542             }
    543           }
    544         },
    545         {
    546           "if": {
    547             "properties": {
    548               "currency": {
    549                 "const": "AFN"
    550               }
    551             },
    552             "required": [
    553               "currency"
    554             ]
    555           },
    556           "then": {
    557             "properties": {
    558               "exponent": {
    559                 "const": 2
    560               }
    561             }
    562           }
    563         },
    564         {
    565           "if": {
    566             "properties": {
    567               "currency": {
    568                 "const": "ALL"
    569               }
    570             },
    571             "required": [
    572               "currency"
    573             ]
    574           },
    575           "then": {
    576             "properties": {
    577               "exponent": {
    578                 "const": 2
    579               }
    580             }
    581           }
    582         },
    583         {
    584           "if": {
    585             "properties": {
    586               "currency": {
    587                 "const": "AMD"
    588               }
    589             },
    590             "required": [
    591               "currency"
    592             ]
    593           },
    594           "then": {
    595             "properties": {
    596               "exponent": {
    597                 "const": 2
    598               }
    599             }
    600           }
    601         },
    602         {
    603           "if": {
    604             "properties": {
    605               "currency": {
    606                 "const": "AOA"
    607               }
    608             },
    609             "required": [
    610               "currency"
    611             ]
    612           },
    613           "then": {
    614             "properties": {
    615               "exponent": {
    616                 "const": 2
    617               }
    618             }
    619           }
    620         },
    621         {
    622           "if": {
    623             "properties": {
    624               "currency": {
    625                 "const": "ARS"
    626               }
    627             },
    628             "required": [
    629               "currency"
    630             ]
    631           },
    632           "then": {
    633             "properties": {
    634               "exponent": {
    635                 "const": 2
    636               }
    637             }
    638           }
    639         },
    640         {
    641           "if": {
    642             "properties": {
    643               "currency": {
    644                 "const": "AUD"
    645               }
    646             },
    647             "required": [
    648               "currency"
    649             ]
    650           },
    651           "then": {
    652             "properties": {
    653               "exponent": {
    654                 "const": 2
    655               }
    656             }
    657           }
    658         },
    659         {
    660           "if": {
    661             "properties": {
    662               "currency": {
    663                 "const": "AWG"
    664               }
    665             },
    666             "required": [
    667               "currency"
    668             ]
    669           },
    670           "then": {
    671             "properties": {
    672               "exponent": {
    673                 "const": 2
    674               }
    675             }
    676           }
    677         },
    678         {
    679           "if": {
    680             "properties": {
    681               "currency": {
    682                 "const": "AZN"
    683               }
    684             },
    685             "required": [
    686               "currency"
    687             ]
    688           },
    689           "then": {
    690             "properties": {
    691               "exponent": {
    692                 "const": 2
    693               }
    694             }
    695           }
    696         },
    697         {
    698           "if": {
    699             "properties": {
    700               "currency": {
    701                 "const": "BAM"
    702               }
    703             },
    704             "required": [
    705               "currency"
    706             ]
    707           },
    708           "then": {
    709             "properties": {
    710               "exponent": {
    711                 "const": 2
    712               }
    713             }
    714           }
    715         },
    716         {
    717           "if": {
    718             "properties": {
    719               "currency": {
    720                 "const": "BBD"
    721               }
    722             },
    723             "required": [
    724               "currency"
    725             ]
    726           },
    727           "then": {
    728             "properties": {
    729               "exponent": {
    730                 "const": 2
    731               }
    732             }
    733           }
    734         },
    735         {
    736           "if": {
    737             "properties": {
    738               "currency": {
    739                 "const": "BDT"
    740               }
    741             },
    742             "required": [
    743               "currency"
    744             ]
    745           },
    746           "then": {
    747             "properties": {
    748               "exponent": {
    749                 "const": 2
    750               }
    751             }
    752           }
    753         },
    754         {
    755           "if": {
    756             "properties": {
    757               "currency": {
    758                 "const": "BHD"
    759               }
    760             },
    761             "required": [
    762               "currency"
    763             ]
    764           },
    765           "then": {
    766             "properties": {
    767               "exponent": {
    768                 "const": 3
    769               }
    770             }
    771           }
    772         },
    773         {
    774           "if": {
    775             "properties": {
    776               "currency": {
    777                 "const": "BIF"
    778               }
    779             },
    780             "required": [
    781               "currency"
    782             ]
    783           },
    784           "then": {
    785             "properties": {
    786               "exponent": {
    787                 "const": 0
    788               }
    789             }
    790           }
    791         },
    792         {
    793           "if": {
    794             "properties": {
    795               "currency": {
    796                 "const": "BMD"
    797               }
    798             },
    799             "required": [
    800               "currency"
    801             ]
    802           },
    803           "then": {
    804             "properties": {
    805               "exponent": {
    806                 "const": 2
    807               }
    808             }
    809           }
    810         },
    811         {
    812           "if": {
    813             "properties": {
    814               "currency": {
    815                 "const": "BND"
    816               }
    817             },
    818             "required": [
    819               "currency"
    820             ]
    821           },
    822           "then": {
    823             "properties": {
    824               "exponent": {
    825                 "const": 2
    826               }
    827             }
    828           }
    829         },
    830         {
    831           "if": {
    832             "properties": {
    833               "currency": {
    834                 "const": "BOB"
    835               }
    836             },
    837             "required": [
    838               "currency"
    839             ]
    840           },
    841           "then": {
    842             "properties": {
    843               "exponent": {
    844                 "const": 2
    845               }
    846             }
    847           }
    848         },
    849         {
    850           "if": {
    851             "properties": {
    852               "currency": {
    853                 "const": "BOV"
    854               }
    855             },
    856             "required": [
    857               "currency"
    858             ]
    859           },
    860           "then": {
    861             "properties": {
    862               "exponent": {
    863                 "const": 2
    864               }
    865             }
    866           }
    867         },
    868         {
    869           "if": {
    870             "properties": {
    871               "currency": {
    872                 "const": "BRL"
    873               }
    874             },
    875             "required": [
    876               "currency"
    877             ]
    878           },
    879           "then": {
    880             "properties": {
    881               "exponent": {
    882                 "const": 2
    883               }
    884             }
    885           }
    886         },
    887         {
    888           "if": {
    889             "properties": {
    890               "currency": {
    891                 "const": "BSD"
    892               }
    893             },
    894             "required": [
    895               "currency"
    896             ]
    897           },
    898           "then": {
    899             "properties": {
    900               "exponent": {
    901                 "const": 2
    902               }
    903             }
    904           }
    905         },
    906         {
    907           "if": {
    908             "properties": {
    909               "currency": {
    910                 "const": "BTN"
    911               }
    912             },
    913             "required": [
    914               "currency"
    915             ]
    916           },
    917           "then": {
    918             "properties": {
    919               "exponent": {
    920                 "const": 2
    921               }
    922             }
    923           }
    924         },
    925         {
    926           "if": {
    927             "properties": {
    928               "currency": {
    929                 "const": "BWP"
    930               }
    931             },
    932             "required": [
    933               "currency"
    934             ]
    935           },
    936           "then": {
    937             "properties": {
    938               "exponent": {
    939                 "const": 2
    940               }
    941             }
    942           }
    943         },
    944         {
    945           "if": {
    946             "properties": {
    947               "currency": {
    948                 "const": "BYN"
    949               }
    950             },
    951             "required": [
    952               "currency"
    953             ]
    954           },
    955           "then": {
    956             "properties": {
    957               "exponent": {
    958                 "const": 2
    959               }
    960             }
    961           }
    962         },
    963         {
    964           "if": {
    965             "properties": {
    966               "currency": {
    967                 "const": "BZD"
    968               }
    969             },
    970             "required": [
    971               "currency"
    972             ]
    973           },
    974           "then": {
    975             "properties": {
    976               "exponent": {
    977                 "const": 2
    978               }
    979             }
    980           }
    981         },
    982         {
    983           "if": {
    984             "properties": {
    985               "currency": {
    986                 "const": "CAD"
    987               }
    988             },
    989             "required": [
    990               "currency"
    991             ]
    992           },
    993           "then": {
    994             "properties": {
    995               "exponent": {
    996                 "const": 2
    997               }
    998             }
    999           }
   1000         },
   1001         {
   1002           "if": {
   1003             "properties": {
   1004               "currency": {
   1005                 "const": "CDF"
   1006               }
   1007             },
   1008             "required": [
   1009               "currency"
   1010             ]
   1011           },
   1012           "then": {
   1013             "properties": {
   1014               "exponent": {
   1015                 "const": 2
   1016               }
   1017             }
   1018           }
   1019         },
   1020         {
   1021           "if": {
   1022             "properties": {
   1023               "currency": {
   1024                 "const": "CHE"
   1025               }
   1026             },
   1027             "required": [
   1028               "currency"
   1029             ]
   1030           },
   1031           "then": {
   1032             "properties": {
   1033               "exponent": {
   1034                 "const": 2
   1035               }
   1036             }
   1037           }
   1038         },
   1039         {
   1040           "if": {
   1041             "properties": {
   1042               "currency": {
   1043                 "const": "CHF"
   1044               }
   1045             },
   1046             "required": [
   1047               "currency"
   1048             ]
   1049           },
   1050           "then": {
   1051             "properties": {
   1052               "exponent": {
   1053                 "const": 2
   1054               }
   1055             }
   1056           }
   1057         },
   1058         {
   1059           "if": {
   1060             "properties": {
   1061               "currency": {
   1062                 "const": "CHW"
   1063               }
   1064             },
   1065             "required": [
   1066               "currency"
   1067             ]
   1068           },
   1069           "then": {
   1070             "properties": {
   1071               "exponent": {
   1072                 "const": 2
   1073               }
   1074             }
   1075           }
   1076         },
   1077         {
   1078           "if": {
   1079             "properties": {
   1080               "currency": {
   1081                 "const": "CLF"
   1082               }
   1083             },
   1084             "required": [
   1085               "currency"
   1086             ]
   1087           },
   1088           "then": {
   1089             "properties": {
   1090               "exponent": {
   1091                 "const": 4
   1092               }
   1093             }
   1094           }
   1095         },
   1096         {
   1097           "if": {
   1098             "properties": {
   1099               "currency": {
   1100                 "const": "CLP"
   1101               }
   1102             },
   1103             "required": [
   1104               "currency"
   1105             ]
   1106           },
   1107           "then": {
   1108             "properties": {
   1109               "exponent": {
   1110                 "const": 0
   1111               }
   1112             }
   1113           }
   1114         },
   1115         {
   1116           "if": {
   1117             "properties": {
   1118               "currency": {
   1119                 "const": "CNY"
   1120               }
   1121             },
   1122             "required": [
   1123               "currency"
   1124             ]
   1125           },
   1126           "then": {
   1127             "properties": {
   1128               "exponent": {
   1129                 "const": 2
   1130               }
   1131             }
   1132           }
   1133         },
   1134         {
   1135           "if": {
   1136             "properties": {
   1137               "currency": {
   1138                 "const": "COP"
   1139               }
   1140             },
   1141             "required": [
   1142               "currency"
   1143             ]
   1144           },
   1145           "then": {
   1146             "properties": {
   1147               "exponent": {
   1148                 "const": 2
   1149               }
   1150             }
   1151           }
   1152         },
   1153         {
   1154           "if": {
   1155             "properties": {
   1156               "currency": {
   1157                 "const": "COU"
   1158               }
   1159             },
   1160             "required": [
   1161               "currency"
   1162             ]
   1163           },
   1164           "then": {
   1165             "properties": {
   1166               "exponent": {
   1167                 "const": 2
   1168               }
   1169             }
   1170           }
   1171         },
   1172         {
   1173           "if": {
   1174             "properties": {
   1175               "currency": {
   1176                 "const": "CRC"
   1177               }
   1178             },
   1179             "required": [
   1180               "currency"
   1181             ]
   1182           },
   1183           "then": {
   1184             "properties": {
   1185               "exponent": {
   1186                 "const": 2
   1187               }
   1188             }
   1189           }
   1190         },
   1191         {
   1192           "if": {
   1193             "properties": {
   1194               "currency": {
   1195                 "const": "CUP"
   1196               }
   1197             },
   1198             "required": [
   1199               "currency"
   1200             ]
   1201           },
   1202           "then": {
   1203             "properties": {
   1204               "exponent": {
   1205                 "const": 2
   1206               }
   1207             }
   1208           }
   1209         },
   1210         {
   1211           "if": {
   1212             "properties": {
   1213               "currency": {
   1214                 "const": "CVE"
   1215               }
   1216             },
   1217             "required": [
   1218               "currency"
   1219             ]
   1220           },
   1221           "then": {
   1222             "properties": {
   1223               "exponent": {
   1224                 "const": 2
   1225               }
   1226             }
   1227           }
   1228         },
   1229         {
   1230           "if": {
   1231             "properties": {
   1232               "currency": {
   1233                 "const": "CZK"
   1234               }
   1235             },
   1236             "required": [
   1237               "currency"
   1238             ]
   1239           },
   1240           "then": {
   1241             "properties": {
   1242               "exponent": {
   1243                 "const": 2
   1244               }
   1245             }
   1246           }
   1247         },
   1248         {
   1249           "if": {
   1250             "properties": {
   1251               "currency": {
   1252                 "const": "DJF"
   1253               }
   1254             },
   1255             "required": [
   1256               "currency"
   1257             ]
   1258           },
   1259           "then": {
   1260             "properties": {
   1261               "exponent": {
   1262                 "const": 0
   1263               }
   1264             }
   1265           }
   1266         },
   1267         {
   1268           "if": {
   1269             "properties": {
   1270               "currency": {
   1271                 "const": "DKK"
   1272               }
   1273             },
   1274             "required": [
   1275               "currency"
   1276             ]
   1277           },
   1278           "then": {
   1279             "properties": {
   1280               "exponent": {
   1281                 "const": 2
   1282               }
   1283             }
   1284           }
   1285         },
   1286         {
   1287           "if": {
   1288             "properties": {
   1289               "currency": {
   1290                 "const": "DOP"
   1291               }
   1292             },
   1293             "required": [
   1294               "currency"
   1295             ]
   1296           },
   1297           "then": {
   1298             "properties": {
   1299               "exponent": {
   1300                 "const": 2
   1301               }
   1302             }
   1303           }
   1304         },
   1305         {
   1306           "if": {
   1307             "properties": {
   1308               "currency": {
   1309                 "const": "DZD"
   1310               }
   1311             },
   1312             "required": [
   1313               "currency"
   1314             ]
   1315           },
   1316           "then": {
   1317             "properties": {
   1318               "exponent": {
   1319                 "const": 2
   1320               }
   1321             }
   1322           }
   1323         },
   1324         {
   1325           "if": {
   1326             "properties": {
   1327               "currency": {
   1328                 "const": "EGP"
   1329               }
   1330             },
   1331             "required": [
   1332               "currency"
   1333             ]
   1334           },
   1335           "then": {
   1336             "properties": {
   1337               "exponent": {
   1338                 "const": 2
   1339               }
   1340             }
   1341           }
   1342         },
   1343         {
   1344           "if": {
   1345             "properties": {
   1346               "currency": {
   1347                 "const": "ERN"
   1348               }
   1349             },
   1350             "required": [
   1351               "currency"
   1352             ]
   1353           },
   1354           "then": {
   1355             "properties": {
   1356               "exponent": {
   1357                 "const": 2
   1358               }
   1359             }
   1360           }
   1361         },
   1362         {
   1363           "if": {
   1364             "properties": {
   1365               "currency": {
   1366                 "const": "ETB"
   1367               }
   1368             },
   1369             "required": [
   1370               "currency"
   1371             ]
   1372           },
   1373           "then": {
   1374             "properties": {
   1375               "exponent": {
   1376                 "const": 2
   1377               }
   1378             }
   1379           }
   1380         },
   1381         {
   1382           "if": {
   1383             "properties": {
   1384               "currency": {
   1385                 "const": "EUR"
   1386               }
   1387             },
   1388             "required": [
   1389               "currency"
   1390             ]
   1391           },
   1392           "then": {
   1393             "properties": {
   1394               "exponent": {
   1395                 "const": 2
   1396               }
   1397             }
   1398           }
   1399         },
   1400         {
   1401           "if": {
   1402             "properties": {
   1403               "currency": {
   1404                 "const": "FJD"
   1405               }
   1406             },
   1407             "required": [
   1408               "currency"
   1409             ]
   1410           },
   1411           "then": {
   1412             "properties": {
   1413               "exponent": {
   1414                 "const": 2
   1415               }
   1416             }
   1417           }
   1418         },
   1419         {
   1420           "if": {
   1421             "properties": {
   1422               "currency": {
   1423                 "const": "FKP"
   1424               }
   1425             },
   1426             "required": [
   1427               "currency"
   1428             ]
   1429           },
   1430           "then": {
   1431             "properties": {
   1432               "exponent": {
   1433                 "const": 2
   1434               }
   1435             }
   1436           }
   1437         },
   1438         {
   1439           "if": {
   1440             "properties": {
   1441               "currency": {
   1442                 "const": "GBP"
   1443               }
   1444             },
   1445             "required": [
   1446               "currency"
   1447             ]
   1448           },
   1449           "then": {
   1450             "properties": {
   1451               "exponent": {
   1452                 "const": 2
   1453               }
   1454             }
   1455           }
   1456         },
   1457         {
   1458           "if": {
   1459             "properties": {
   1460               "currency": {
   1461                 "const": "GEL"
   1462               }
   1463             },
   1464             "required": [
   1465               "currency"
   1466             ]
   1467           },
   1468           "then": {
   1469             "properties": {
   1470               "exponent": {
   1471                 "const": 2
   1472               }
   1473             }
   1474           }
   1475         },
   1476         {
   1477           "if": {
   1478             "properties": {
   1479               "currency": {
   1480                 "const": "GHS"
   1481               }
   1482             },
   1483             "required": [
   1484               "currency"
   1485             ]
   1486           },
   1487           "then": {
   1488             "properties": {
   1489               "exponent": {
   1490                 "const": 2
   1491               }
   1492             }
   1493           }
   1494         },
   1495         {
   1496           "if": {
   1497             "properties": {
   1498               "currency": {
   1499                 "const": "GIP"
   1500               }
   1501             },
   1502             "required": [
   1503               "currency"
   1504             ]
   1505           },
   1506           "then": {
   1507             "properties": {
   1508               "exponent": {
   1509                 "const": 2
   1510               }
   1511             }
   1512           }
   1513         },
   1514         {
   1515           "if": {
   1516             "properties": {
   1517               "currency": {
   1518                 "const": "GMD"
   1519               }
   1520             },
   1521             "required": [
   1522               "currency"
   1523             ]
   1524           },
   1525           "then": {
   1526             "properties": {
   1527               "exponent": {
   1528                 "const": 2
   1529               }
   1530             }
   1531           }
   1532         },
   1533         {
   1534           "if": {
   1535             "properties": {
   1536               "currency": {
   1537                 "const": "GNF"
   1538               }
   1539             },
   1540             "required": [
   1541               "currency"
   1542             ]
   1543           },
   1544           "then": {
   1545             "properties": {
   1546               "exponent": {
   1547                 "const": 0
   1548               }
   1549             }
   1550           }
   1551         },
   1552         {
   1553           "if": {
   1554             "properties": {
   1555               "currency": {
   1556                 "const": "GTQ"
   1557               }
   1558             },
   1559             "required": [
   1560               "currency"
   1561             ]
   1562           },
   1563           "then": {
   1564             "properties": {
   1565               "exponent": {
   1566                 "const": 2
   1567               }
   1568             }
   1569           }
   1570         },
   1571         {
   1572           "if": {
   1573             "properties": {
   1574               "currency": {
   1575                 "const": "GYD"
   1576               }
   1577             },
   1578             "required": [
   1579               "currency"
   1580             ]
   1581           },
   1582           "then": {
   1583             "properties": {
   1584               "exponent": {
   1585                 "const": 2
   1586               }
   1587             }
   1588           }
   1589         },
   1590         {
   1591           "if": {
   1592             "properties": {
   1593               "currency": {
   1594                 "const": "HKD"
   1595               }
   1596             },
   1597             "required": [
   1598               "currency"
   1599             ]
   1600           },
   1601           "then": {
   1602             "properties": {
   1603               "exponent": {
   1604                 "const": 2
   1605               }
   1606             }
   1607           }
   1608         },
   1609         {
   1610           "if": {
   1611             "properties": {
   1612               "currency": {
   1613                 "const": "HNL"
   1614               }
   1615             },
   1616             "required": [
   1617               "currency"
   1618             ]
   1619           },
   1620           "then": {
   1621             "properties": {
   1622               "exponent": {
   1623                 "const": 2
   1624               }
   1625             }
   1626           }
   1627         },
   1628         {
   1629           "if": {
   1630             "properties": {
   1631               "currency": {
   1632                 "const": "HTG"
   1633               }
   1634             },
   1635             "required": [
   1636               "currency"
   1637             ]
   1638           },
   1639           "then": {
   1640             "properties": {
   1641               "exponent": {
   1642                 "const": 2
   1643               }
   1644             }
   1645           }
   1646         },
   1647         {
   1648           "if": {
   1649             "properties": {
   1650               "currency": {
   1651                 "const": "HUF"
   1652               }
   1653             },
   1654             "required": [
   1655               "currency"
   1656             ]
   1657           },
   1658           "then": {
   1659             "properties": {
   1660               "exponent": {
   1661                 "const": 2
   1662               }
   1663             }
   1664           }
   1665         },
   1666         {
   1667           "if": {
   1668             "properties": {
   1669               "currency": {
   1670                 "const": "IDR"
   1671               }
   1672             },
   1673             "required": [
   1674               "currency"
   1675             ]
   1676           },
   1677           "then": {
   1678             "properties": {
   1679               "exponent": {
   1680                 "const": 2
   1681               }
   1682             }
   1683           }
   1684         },
   1685         {
   1686           "if": {
   1687             "properties": {
   1688               "currency": {
   1689                 "const": "ILS"
   1690               }
   1691             },
   1692             "required": [
   1693               "currency"
   1694             ]
   1695           },
   1696           "then": {
   1697             "properties": {
   1698               "exponent": {
   1699                 "const": 2
   1700               }
   1701             }
   1702           }
   1703         },
   1704         {
   1705           "if": {
   1706             "properties": {
   1707               "currency": {
   1708                 "const": "INR"
   1709               }
   1710             },
   1711             "required": [
   1712               "currency"
   1713             ]
   1714           },
   1715           "then": {
   1716             "properties": {
   1717               "exponent": {
   1718                 "const": 2
   1719               }
   1720             }
   1721           }
   1722         },
   1723         {
   1724           "if": {
   1725             "properties": {
   1726               "currency": {
   1727                 "const": "IQD"
   1728               }
   1729             },
   1730             "required": [
   1731               "currency"
   1732             ]
   1733           },
   1734           "then": {
   1735             "properties": {
   1736               "exponent": {
   1737                 "const": 3
   1738               }
   1739             }
   1740           }
   1741         },
   1742         {
   1743           "if": {
   1744             "properties": {
   1745               "currency": {
   1746                 "const": "IRR"
   1747               }
   1748             },
   1749             "required": [
   1750               "currency"
   1751             ]
   1752           },
   1753           "then": {
   1754             "properties": {
   1755               "exponent": {
   1756                 "const": 2
   1757               }
   1758             }
   1759           }
   1760         },
   1761         {
   1762           "if": {
   1763             "properties": {
   1764               "currency": {
   1765                 "const": "ISK"
   1766               }
   1767             },
   1768             "required": [
   1769               "currency"
   1770             ]
   1771           },
   1772           "then": {
   1773             "properties": {
   1774               "exponent": {
   1775                 "const": 0
   1776               }
   1777             }
   1778           }
   1779         },
   1780         {
   1781           "if": {
   1782             "properties": {
   1783               "currency": {
   1784                 "const": "JMD"
   1785               }
   1786             },
   1787             "required": [
   1788               "currency"
   1789             ]
   1790           },
   1791           "then": {
   1792             "properties": {
   1793               "exponent": {
   1794                 "const": 2
   1795               }
   1796             }
   1797           }
   1798         },
   1799         {
   1800           "if": {
   1801             "properties": {
   1802               "currency": {
   1803                 "const": "JOD"
   1804               }
   1805             },
   1806             "required": [
   1807               "currency"
   1808             ]
   1809           },
   1810           "then": {
   1811             "properties": {
   1812               "exponent": {
   1813                 "const": 3
   1814               }
   1815             }
   1816           }
   1817         },
   1818         {
   1819           "if": {
   1820             "properties": {
   1821               "currency": {
   1822                 "const": "JPY"
   1823               }
   1824             },
   1825             "required": [
   1826               "currency"
   1827             ]
   1828           },
   1829           "then": {
   1830             "properties": {
   1831               "exponent": {
   1832                 "const": 0
   1833               }
   1834             }
   1835           }
   1836         },
   1837         {
   1838           "if": {
   1839             "properties": {
   1840               "currency": {
   1841                 "const": "KES"
   1842               }
   1843             },
   1844             "required": [
   1845               "currency"
   1846             ]
   1847           },
   1848           "then": {
   1849             "properties": {
   1850               "exponent": {
   1851                 "const": 2
   1852               }
   1853             }
   1854           }
   1855         },
   1856         {
   1857           "if": {
   1858             "properties": {
   1859               "currency": {
   1860                 "const": "KGS"
   1861               }
   1862             },
   1863             "required": [
   1864               "currency"
   1865             ]
   1866           },
   1867           "then": {
   1868             "properties": {
   1869               "exponent": {
   1870                 "const": 2
   1871               }
   1872             }
   1873           }
   1874         },
   1875         {
   1876           "if": {
   1877             "properties": {
   1878               "currency": {
   1879                 "const": "KHR"
   1880               }
   1881             },
   1882             "required": [
   1883               "currency"
   1884             ]
   1885           },
   1886           "then": {
   1887             "properties": {
   1888               "exponent": {
   1889                 "const": 2
   1890               }
   1891             }
   1892           }
   1893         },
   1894         {
   1895           "if": {
   1896             "properties": {
   1897               "currency": {
   1898                 "const": "KMF"
   1899               }
   1900             },
   1901             "required": [
   1902               "currency"
   1903             ]
   1904           },
   1905           "then": {
   1906             "properties": {
   1907               "exponent": {
   1908                 "const": 0
   1909               }
   1910             }
   1911           }
   1912         },
   1913         {
   1914           "if": {
   1915             "properties": {
   1916               "currency": {
   1917                 "const": "KPW"
   1918               }
   1919             },
   1920             "required": [
   1921               "currency"
   1922             ]
   1923           },
   1924           "then": {
   1925             "properties": {
   1926               "exponent": {
   1927                 "const": 2
   1928               }
   1929             }
   1930           }
   1931         },
   1932         {
   1933           "if": {
   1934             "properties": {
   1935               "currency": {
   1936                 "const": "KRW"
   1937               }
   1938             },
   1939             "required": [
   1940               "currency"
   1941             ]
   1942           },
   1943           "then": {
   1944             "properties": {
   1945               "exponent": {
   1946                 "const": 0
   1947               }
   1948             }
   1949           }
   1950         },
   1951         {
   1952           "if": {
   1953             "properties": {
   1954               "currency": {
   1955                 "const": "KWD"
   1956               }
   1957             },
   1958             "required": [
   1959               "currency"
   1960             ]
   1961           },
   1962           "then": {
   1963             "properties": {
   1964               "exponent": {
   1965                 "const": 3
   1966               }
   1967             }
   1968           }
   1969         },
   1970         {
   1971           "if": {
   1972             "properties": {
   1973               "currency": {
   1974                 "const": "KYD"
   1975               }
   1976             },
   1977             "required": [
   1978               "currency"
   1979             ]
   1980           },
   1981           "then": {
   1982             "properties": {
   1983               "exponent": {
   1984                 "const": 2
   1985               }
   1986             }
   1987           }
   1988         },
   1989         {
   1990           "if": {
   1991             "properties": {
   1992               "currency": {
   1993                 "const": "KZT"
   1994               }
   1995             },
   1996             "required": [
   1997               "currency"
   1998             ]
   1999           },
   2000           "then": {
   2001             "properties": {
   2002               "exponent": {
   2003                 "const": 2
   2004               }
   2005             }
   2006           }
   2007         },
   2008         {
   2009           "if": {
   2010             "properties": {
   2011               "currency": {
   2012                 "const": "LAK"
   2013               }
   2014             },
   2015             "required": [
   2016               "currency"
   2017             ]
   2018           },
   2019           "then": {
   2020             "properties": {
   2021               "exponent": {
   2022                 "const": 2
   2023               }
   2024             }
   2025           }
   2026         },
   2027         {
   2028           "if": {
   2029             "properties": {
   2030               "currency": {
   2031                 "const": "LBP"
   2032               }
   2033             },
   2034             "required": [
   2035               "currency"
   2036             ]
   2037           },
   2038           "then": {
   2039             "properties": {
   2040               "exponent": {
   2041                 "const": 2
   2042               }
   2043             }
   2044           }
   2045         },
   2046         {
   2047           "if": {
   2048             "properties": {
   2049               "currency": {
   2050                 "const": "LKR"
   2051               }
   2052             },
   2053             "required": [
   2054               "currency"
   2055             ]
   2056           },
   2057           "then": {
   2058             "properties": {
   2059               "exponent": {
   2060                 "const": 2
   2061               }
   2062             }
   2063           }
   2064         },
   2065         {
   2066           "if": {
   2067             "properties": {
   2068               "currency": {
   2069                 "const": "LRD"
   2070               }
   2071             },
   2072             "required": [
   2073               "currency"
   2074             ]
   2075           },
   2076           "then": {
   2077             "properties": {
   2078               "exponent": {
   2079                 "const": 2
   2080               }
   2081             }
   2082           }
   2083         },
   2084         {
   2085           "if": {
   2086             "properties": {
   2087               "currency": {
   2088                 "const": "LSL"
   2089               }
   2090             },
   2091             "required": [
   2092               "currency"
   2093             ]
   2094           },
   2095           "then": {
   2096             "properties": {
   2097               "exponent": {
   2098                 "const": 2
   2099               }
   2100             }
   2101           }
   2102         },
   2103         {
   2104           "if": {
   2105             "properties": {
   2106               "currency": {
   2107                 "const": "LYD"
   2108               }
   2109             },
   2110             "required": [
   2111               "currency"
   2112             ]
   2113           },
   2114           "then": {
   2115             "properties": {
   2116               "exponent": {
   2117                 "const": 3
   2118               }
   2119             }
   2120           }
   2121         },
   2122         {
   2123           "if": {
   2124             "properties": {
   2125               "currency": {
   2126                 "const": "MAD"
   2127               }
   2128             },
   2129             "required": [
   2130               "currency"
   2131             ]
   2132           },
   2133           "then": {
   2134             "properties": {
   2135               "exponent": {
   2136                 "const": 2
   2137               }
   2138             }
   2139           }
   2140         },
   2141         {
   2142           "if": {
   2143             "properties": {
   2144               "currency": {
   2145                 "const": "MDL"
   2146               }
   2147             },
   2148             "required": [
   2149               "currency"
   2150             ]
   2151           },
   2152           "then": {
   2153             "properties": {
   2154               "exponent": {
   2155                 "const": 2
   2156               }
   2157             }
   2158           }
   2159         },
   2160         {
   2161           "if": {
   2162             "properties": {
   2163               "currency": {
   2164                 "const": "MGA"
   2165               }
   2166             },
   2167             "required": [
   2168               "currency"
   2169             ]
   2170           },
   2171           "then": {
   2172             "properties": {
   2173               "exponent": {
   2174                 "const": 2
   2175               }
   2176             }
   2177           }
   2178         },
   2179         {
   2180           "if": {
   2181             "properties": {
   2182               "currency": {
   2183                 "const": "MKD"
   2184               }
   2185             },
   2186             "required": [
   2187               "currency"
   2188             ]
   2189           },
   2190           "then": {
   2191             "properties": {
   2192               "exponent": {
   2193                 "const": 2
   2194               }
   2195             }
   2196           }
   2197         },
   2198         {
   2199           "if": {
   2200             "properties": {
   2201               "currency": {
   2202                 "const": "MMK"
   2203               }
   2204             },
   2205             "required": [
   2206               "currency"
   2207             ]
   2208           },
   2209           "then": {
   2210             "properties": {
   2211               "exponent": {
   2212                 "const": 2
   2213               }
   2214             }
   2215           }
   2216         },
   2217         {
   2218           "if": {
   2219             "properties": {
   2220               "currency": {
   2221                 "const": "MNT"
   2222               }
   2223             },
   2224             "required": [
   2225               "currency"
   2226             ]
   2227           },
   2228           "then": {
   2229             "properties": {
   2230               "exponent": {
   2231                 "const": 2
   2232               }
   2233             }
   2234           }
   2235         },
   2236         {
   2237           "if": {
   2238             "properties": {
   2239               "currency": {
   2240                 "const": "MOP"
   2241               }
   2242             },
   2243             "required": [
   2244               "currency"
   2245             ]
   2246           },
   2247           "then": {
   2248             "properties": {
   2249               "exponent": {
   2250                 "const": 2
   2251               }
   2252             }
   2253           }
   2254         },
   2255         {
   2256           "if": {
   2257             "properties": {
   2258               "currency": {
   2259                 "const": "MRU"
   2260               }
   2261             },
   2262             "required": [
   2263               "currency"
   2264             ]
   2265           },
   2266           "then": {
   2267             "properties": {
   2268               "exponent": {
   2269                 "const": 2
   2270               }
   2271             }
   2272           }
   2273         },
   2274         {
   2275           "if": {
   2276             "properties": {
   2277               "currency": {
   2278                 "const": "MUR"
   2279               }
   2280             },
   2281             "required": [
   2282               "currency"
   2283             ]
   2284           },
   2285           "then": {
   2286             "properties": {
   2287               "exponent": {
   2288                 "const": 2
   2289               }
   2290             }
   2291           }
   2292         },
   2293         {
   2294           "if": {
   2295             "properties": {
   2296               "currency": {
   2297                 "const": "MVR"
   2298               }
   2299             },
   2300             "required": [
   2301               "currency"
   2302             ]
   2303           },
   2304           "then": {
   2305             "properties": {
   2306               "exponent": {
   2307                 "const": 2
   2308               }
   2309             }
   2310           }
   2311         },
   2312         {
   2313           "if": {
   2314             "properties": {
   2315               "currency": {
   2316                 "const": "MWK"
   2317               }
   2318             },
   2319             "required": [
   2320               "currency"
   2321             ]
   2322           },
   2323           "then": {
   2324             "properties": {
   2325               "exponent": {
   2326                 "const": 2
   2327               }
   2328             }
   2329           }
   2330         },
   2331         {
   2332           "if": {
   2333             "properties": {
   2334               "currency": {
   2335                 "const": "MXN"
   2336               }
   2337             },
   2338             "required": [
   2339               "currency"
   2340             ]
   2341           },
   2342           "then": {
   2343             "properties": {
   2344               "exponent": {
   2345                 "const": 2
   2346               }
   2347             }
   2348           }
   2349         },
   2350         {
   2351           "if": {
   2352             "properties": {
   2353               "currency": {
   2354                 "const": "MXV"
   2355               }
   2356             },
   2357             "required": [
   2358               "currency"
   2359             ]
   2360           },
   2361           "then": {
   2362             "properties": {
   2363               "exponent": {
   2364                 "const": 2
   2365               }
   2366             }
   2367           }
   2368         },
   2369         {
   2370           "if": {
   2371             "properties": {
   2372               "currency": {
   2373                 "const": "MYR"
   2374               }
   2375             },
   2376             "required": [
   2377               "currency"
   2378             ]
   2379           },
   2380           "then": {
   2381             "properties": {
   2382               "exponent": {
   2383                 "const": 2
   2384               }
   2385             }
   2386           }
   2387         },
   2388         {
   2389           "if": {
   2390             "properties": {
   2391               "currency": {
   2392                 "const": "MZN"
   2393               }
   2394             },
   2395             "required": [
   2396               "currency"
   2397             ]
   2398           },
   2399           "then": {
   2400             "properties": {
   2401               "exponent": {
   2402                 "const": 2
   2403               }
   2404             }
   2405           }
   2406         },
   2407         {
   2408           "if": {
   2409             "properties": {
   2410               "currency": {
   2411                 "const": "NAD"
   2412               }
   2413             },
   2414             "required": [
   2415               "currency"
   2416             ]
   2417           },
   2418           "then": {
   2419             "properties": {
   2420               "exponent": {
   2421                 "const": 2
   2422               }
   2423             }
   2424           }
   2425         },
   2426         {
   2427           "if": {
   2428             "properties": {
   2429               "currency": {
   2430                 "const": "NGN"
   2431               }
   2432             },
   2433             "required": [
   2434               "currency"
   2435             ]
   2436           },
   2437           "then": {
   2438             "properties": {
   2439               "exponent": {
   2440                 "const": 2
   2441               }
   2442             }
   2443           }
   2444         },
   2445         {
   2446           "if": {
   2447             "properties": {
   2448               "currency": {
   2449                 "const": "NIO"
   2450               }
   2451             },
   2452             "required": [
   2453               "currency"
   2454             ]
   2455           },
   2456           "then": {
   2457             "properties": {
   2458               "exponent": {
   2459                 "const": 2
   2460               }
   2461             }
   2462           }
   2463         },
   2464         {
   2465           "if": {
   2466             "properties": {
   2467               "currency": {
   2468                 "const": "NOK"
   2469               }
   2470             },
   2471             "required": [
   2472               "currency"
   2473             ]
   2474           },
   2475           "then": {
   2476             "properties": {
   2477               "exponent": {
   2478                 "const": 2
   2479               }
   2480             }
   2481           }
   2482         },
   2483         {
   2484           "if": {
   2485             "properties": {
   2486               "currency": {
   2487                 "const": "NPR"
   2488               }
   2489             },
   2490             "required": [
   2491               "currency"
   2492             ]
   2493           },
   2494           "then": {
   2495             "properties": {
   2496               "exponent": {
   2497                 "const": 2
   2498               }
   2499             }
   2500           }
   2501         },
   2502         {
   2503           "if": {
   2504             "properties": {
   2505               "currency": {
   2506                 "const": "NZD"
   2507               }
   2508             },
   2509             "required": [
   2510               "currency"
   2511             ]
   2512           },
   2513           "then": {
   2514             "properties": {
   2515               "exponent": {
   2516                 "const": 2
   2517               }
   2518             }
   2519           }
   2520         },
   2521         {
   2522           "if": {
   2523             "properties": {
   2524               "currency": {
   2525                 "const": "OMR"
   2526               }
   2527             },
   2528             "required": [
   2529               "currency"
   2530             ]
   2531           },
   2532           "then": {
   2533             "properties": {
   2534               "exponent": {
   2535                 "const": 3
   2536               }
   2537             }
   2538           }
   2539         },
   2540         {
   2541           "if": {
   2542             "properties": {
   2543               "currency": {
   2544                 "const": "PAB"
   2545               }
   2546             },
   2547             "required": [
   2548               "currency"
   2549             ]
   2550           },
   2551           "then": {
   2552             "properties": {
   2553               "exponent": {
   2554                 "const": 2
   2555               }
   2556             }
   2557           }
   2558         },
   2559         {
   2560           "if": {
   2561             "properties": {
   2562               "currency": {
   2563                 "const": "PEN"
   2564               }
   2565             },
   2566             "required": [
   2567               "currency"
   2568             ]
   2569           },
   2570           "then": {
   2571             "properties": {
   2572               "exponent": {
   2573                 "const": 2
   2574               }
   2575             }
   2576           }
   2577         },
   2578         {
   2579           "if": {
   2580             "properties": {
   2581               "currency": {
   2582                 "const": "PGK"
   2583               }
   2584             },
   2585             "required": [
   2586               "currency"
   2587             ]
   2588           },
   2589           "then": {
   2590             "properties": {
   2591               "exponent": {
   2592                 "const": 2
   2593               }
   2594             }
   2595           }
   2596         },
   2597         {
   2598           "if": {
   2599             "properties": {
   2600               "currency": {
   2601                 "const": "PHP"
   2602               }
   2603             },
   2604             "required": [
   2605               "currency"
   2606             ]
   2607           },
   2608           "then": {
   2609             "properties": {
   2610               "exponent": {
   2611                 "const": 2
   2612               }
   2613             }
   2614           }
   2615         },
   2616         {
   2617           "if": {
   2618             "properties": {
   2619               "currency": {
   2620                 "const": "PKR"
   2621               }
   2622             },
   2623             "required": [
   2624               "currency"
   2625             ]
   2626           },
   2627           "then": {
   2628             "properties": {
   2629               "exponent": {
   2630                 "const": 2
   2631               }
   2632             }
   2633           }
   2634         },
   2635         {
   2636           "if": {
   2637             "properties": {
   2638               "currency": {
   2639                 "const": "PLN"
   2640               }
   2641             },
   2642             "required": [
   2643               "currency"
   2644             ]
   2645           },
   2646           "then": {
   2647             "properties": {
   2648               "exponent": {
   2649                 "const": 2
   2650               }
   2651             }
   2652           }
   2653         },
   2654         {
   2655           "if": {
   2656             "properties": {
   2657               "currency": {
   2658                 "const": "PYG"
   2659               }
   2660             },
   2661             "required": [
   2662               "currency"
   2663             ]
   2664           },
   2665           "then": {
   2666             "properties": {
   2667               "exponent": {
   2668                 "const": 0
   2669               }
   2670             }
   2671           }
   2672         },
   2673         {
   2674           "if": {
   2675             "properties": {
   2676               "currency": {
   2677                 "const": "QAR"
   2678               }
   2679             },
   2680             "required": [
   2681               "currency"
   2682             ]
   2683           },
   2684           "then": {
   2685             "properties": {
   2686               "exponent": {
   2687                 "const": 2
   2688               }
   2689             }
   2690           }
   2691         },
   2692         {
   2693           "if": {
   2694             "properties": {
   2695               "currency": {
   2696                 "const": "RON"
   2697               }
   2698             },
   2699             "required": [
   2700               "currency"
   2701             ]
   2702           },
   2703           "then": {
   2704             "properties": {
   2705               "exponent": {
   2706                 "const": 2
   2707               }
   2708             }
   2709           }
   2710         },
   2711         {
   2712           "if": {
   2713             "properties": {
   2714               "currency": {
   2715                 "const": "RSD"
   2716               }
   2717             },
   2718             "required": [
   2719               "currency"
   2720             ]
   2721           },
   2722           "then": {
   2723             "properties": {
   2724               "exponent": {
   2725                 "const": 2
   2726               }
   2727             }
   2728           }
   2729         },
   2730         {
   2731           "if": {
   2732             "properties": {
   2733               "currency": {
   2734                 "const": "RUB"
   2735               }
   2736             },
   2737             "required": [
   2738               "currency"
   2739             ]
   2740           },
   2741           "then": {
   2742             "properties": {
   2743               "exponent": {
   2744                 "const": 2
   2745               }
   2746             }
   2747           }
   2748         },
   2749         {
   2750           "if": {
   2751             "properties": {
   2752               "currency": {
   2753                 "const": "RWF"
   2754               }
   2755             },
   2756             "required": [
   2757               "currency"
   2758             ]
   2759           },
   2760           "then": {
   2761             "properties": {
   2762               "exponent": {
   2763                 "const": 0
   2764               }
   2765             }
   2766           }
   2767         },
   2768         {
   2769           "if": {
   2770             "properties": {
   2771               "currency": {
   2772                 "const": "SAR"
   2773               }
   2774             },
   2775             "required": [
   2776               "currency"
   2777             ]
   2778           },
   2779           "then": {
   2780             "properties": {
   2781               "exponent": {
   2782                 "const": 2
   2783               }
   2784             }
   2785           }
   2786         },
   2787         {
   2788           "if": {
   2789             "properties": {
   2790               "currency": {
   2791                 "const": "SBD"
   2792               }
   2793             },
   2794             "required": [
   2795               "currency"
   2796             ]
   2797           },
   2798           "then": {
   2799             "properties": {
   2800               "exponent": {
   2801                 "const": 2
   2802               }
   2803             }
   2804           }
   2805         },
   2806         {
   2807           "if": {
   2808             "properties": {
   2809               "currency": {
   2810                 "const": "SCR"
   2811               }
   2812             },
   2813             "required": [
   2814               "currency"
   2815             ]
   2816           },
   2817           "then": {
   2818             "properties": {
   2819               "exponent": {
   2820                 "const": 2
   2821               }
   2822             }
   2823           }
   2824         },
   2825         {
   2826           "if": {
   2827             "properties": {
   2828               "currency": {
   2829                 "const": "SDG"
   2830               }
   2831             },
   2832             "required": [
   2833               "currency"
   2834             ]
   2835           },
   2836           "then": {
   2837             "properties": {
   2838               "exponent": {
   2839                 "const": 2
   2840               }
   2841             }
   2842           }
   2843         },
   2844         {
   2845           "if": {
   2846             "properties": {
   2847               "currency": {
   2848                 "const": "SEK"
   2849               }
   2850             },
   2851             "required": [
   2852               "currency"
   2853             ]
   2854           },
   2855           "then": {
   2856             "properties": {
   2857               "exponent": {
   2858                 "const": 2
   2859               }
   2860             }
   2861           }
   2862         },
   2863         {
   2864           "if": {
   2865             "properties": {
   2866               "currency": {
   2867                 "const": "SGD"
   2868               }
   2869             },
   2870             "required": [
   2871               "currency"
   2872             ]
   2873           },
   2874           "then": {
   2875             "properties": {
   2876               "exponent": {
   2877                 "const": 2
   2878               }
   2879             }
   2880           }
   2881         },
   2882         {
   2883           "if": {
   2884             "properties": {
   2885               "currency": {
   2886                 "const": "SHP"
   2887               }
   2888             },
   2889             "required": [
   2890               "currency"
   2891             ]
   2892           },
   2893           "then": {
   2894             "properties": {
   2895               "exponent": {
   2896                 "const": 2
   2897               }
   2898             }
   2899           }
   2900         },
   2901         {
   2902           "if": {
   2903             "properties": {
   2904               "currency": {
   2905                 "const": "SLE"
   2906               }
   2907             },
   2908             "required": [
   2909               "currency"
   2910             ]
   2911           },
   2912           "then": {
   2913             "properties": {
   2914               "exponent": {
   2915                 "const": 2
   2916               }
   2917             }
   2918           }
   2919         },
   2920         {
   2921           "if": {
   2922             "properties": {
   2923               "currency": {
   2924                 "const": "SOS"
   2925               }
   2926             },
   2927             "required": [
   2928               "currency"
   2929             ]
   2930           },
   2931           "then": {
   2932             "properties": {
   2933               "exponent": {
   2934                 "const": 2
   2935               }
   2936             }
   2937           }
   2938         },
   2939         {
   2940           "if": {
   2941             "properties": {
   2942               "currency": {
   2943                 "const": "SRD"
   2944               }
   2945             },
   2946             "required": [
   2947               "currency"
   2948             ]
   2949           },
   2950           "then": {
   2951             "properties": {
   2952               "exponent": {
   2953                 "const": 2
   2954               }
   2955             }
   2956           }
   2957         },
   2958         {
   2959           "if": {
   2960             "properties": {
   2961               "currency": {
   2962                 "const": "SSP"
   2963               }
   2964             },
   2965             "required": [
   2966               "currency"
   2967             ]
   2968           },
   2969           "then": {
   2970             "properties": {
   2971               "exponent": {
   2972                 "const": 2
   2973               }
   2974             }
   2975           }
   2976         },
   2977         {
   2978           "if": {
   2979             "properties": {
   2980               "currency": {
   2981                 "const": "STN"
   2982               }
   2983             },
   2984             "required": [
   2985               "currency"
   2986             ]
   2987           },
   2988           "then": {
   2989             "properties": {
   2990               "exponent": {
   2991                 "const": 2
   2992               }
   2993             }
   2994           }
   2995         },
   2996         {
   2997           "if": {
   2998             "properties": {
   2999               "currency": {
   3000                 "const": "SVC"
   3001               }
   3002             },
   3003             "required": [
   3004               "currency"
   3005             ]
   3006           },
   3007           "then": {
   3008             "properties": {
   3009               "exponent": {
   3010                 "const": 2
   3011               }
   3012             }
   3013           }
   3014         },
   3015         {
   3016           "if": {
   3017             "properties": {
   3018               "currency": {
   3019                 "const": "SYP"
   3020               }
   3021             },
   3022             "required": [
   3023               "currency"
   3024             ]
   3025           },
   3026           "then": {
   3027             "properties": {
   3028               "exponent": {
   3029                 "const": 2
   3030               }
   3031             }
   3032           }
   3033         },
   3034         {
   3035           "if": {
   3036             "properties": {
   3037               "currency": {
   3038                 "const": "SZL"
   3039               }
   3040             },
   3041             "required": [
   3042               "currency"
   3043             ]
   3044           },
   3045           "then": {
   3046             "properties": {
   3047               "exponent": {
   3048                 "const": 2
   3049               }
   3050             }
   3051           }
   3052         },
   3053         {
   3054           "if": {
   3055             "properties": {
   3056               "currency": {
   3057                 "const": "THB"
   3058               }
   3059             },
   3060             "required": [
   3061               "currency"
   3062             ]
   3063           },
   3064           "then": {
   3065             "properties": {
   3066               "exponent": {
   3067                 "const": 2
   3068               }
   3069             }
   3070           }
   3071         },
   3072         {
   3073           "if": {
   3074             "properties": {
   3075               "currency": {
   3076                 "const": "TJS"
   3077               }
   3078             },
   3079             "required": [
   3080               "currency"
   3081             ]
   3082           },
   3083           "then": {
   3084             "properties": {
   3085               "exponent": {
   3086                 "const": 2
   3087               }
   3088             }
   3089           }
   3090         },
   3091         {
   3092           "if": {
   3093             "properties": {
   3094               "currency": {
   3095                 "const": "TMT"
   3096               }
   3097             },
   3098             "required": [
   3099               "currency"
   3100             ]
   3101           },
   3102           "then": {
   3103             "properties": {
   3104               "exponent": {
   3105                 "const": 2
   3106               }
   3107             }
   3108           }
   3109         },
   3110         {
   3111           "if": {
   3112             "properties": {
   3113               "currency": {
   3114                 "const": "TND"
   3115               }
   3116             },
   3117             "required": [
   3118               "currency"
   3119             ]
   3120           },
   3121           "then": {
   3122             "properties": {
   3123               "exponent": {
   3124                 "const": 3
   3125               }
   3126             }
   3127           }
   3128         },
   3129         {
   3130           "if": {
   3131             "properties": {
   3132               "currency": {
   3133                 "const": "TOP"
   3134               }
   3135             },
   3136             "required": [
   3137               "currency"
   3138             ]
   3139           },
   3140           "then": {
   3141             "properties": {
   3142               "exponent": {
   3143                 "const": 2
   3144               }
   3145             }
   3146           }
   3147         },
   3148         {
   3149           "if": {
   3150             "properties": {
   3151               "currency": {
   3152                 "const": "TRY"
   3153               }
   3154             },
   3155             "required": [
   3156               "currency"
   3157             ]
   3158           },
   3159           "then": {
   3160             "properties": {
   3161               "exponent": {
   3162                 "const": 2
   3163               }
   3164             }
   3165           }
   3166         },
   3167         {
   3168           "if": {
   3169             "properties": {
   3170               "currency": {
   3171                 "const": "TTD"
   3172               }
   3173             },
   3174             "required": [
   3175               "currency"
   3176             ]
   3177           },
   3178           "then": {
   3179             "properties": {
   3180               "exponent": {
   3181                 "const": 2
   3182               }
   3183             }
   3184           }
   3185         },
   3186         {
   3187           "if": {
   3188             "properties": {
   3189               "currency": {
   3190                 "const": "TWD"
   3191               }
   3192             },
   3193             "required": [
   3194               "currency"
   3195             ]
   3196           },
   3197           "then": {
   3198             "properties": {
   3199               "exponent": {
   3200                 "const": 2
   3201               }
   3202             }
   3203           }
   3204         },
   3205         {
   3206           "if": {
   3207             "properties": {
   3208               "currency": {
   3209                 "const": "TZS"
   3210               }
   3211             },
   3212             "required": [
   3213               "currency"
   3214             ]
   3215           },
   3216           "then": {
   3217             "properties": {
   3218               "exponent": {
   3219                 "const": 2
   3220               }
   3221             }
   3222           }
   3223         },
   3224         {
   3225           "if": {
   3226             "properties": {
   3227               "currency": {
   3228                 "const": "UAH"
   3229               }
   3230             },
   3231             "required": [
   3232               "currency"
   3233             ]
   3234           },
   3235           "then": {
   3236             "properties": {
   3237               "exponent": {
   3238                 "const": 2
   3239               }
   3240             }
   3241           }
   3242         },
   3243         {
   3244           "if": {
   3245             "properties": {
   3246               "currency": {
   3247                 "const": "UGX"
   3248               }
   3249             },
   3250             "required": [
   3251               "currency"
   3252             ]
   3253           },
   3254           "then": {
   3255             "properties": {
   3256               "exponent": {
   3257                 "const": 0
   3258               }
   3259             }
   3260           }
   3261         },
   3262         {
   3263           "if": {
   3264             "properties": {
   3265               "currency": {
   3266                 "const": "USD"
   3267               }
   3268             },
   3269             "required": [
   3270               "currency"
   3271             ]
   3272           },
   3273           "then": {
   3274             "properties": {
   3275               "exponent": {
   3276                 "const": 2
   3277               }
   3278             }
   3279           }
   3280         },
   3281         {
   3282           "if": {
   3283             "properties": {
   3284               "currency": {
   3285                 "const": "USN"
   3286               }
   3287             },
   3288             "required": [
   3289               "currency"
   3290             ]
   3291           },
   3292           "then": {
   3293             "properties": {
   3294               "exponent": {
   3295                 "const": 2
   3296               }
   3297             }
   3298           }
   3299         },
   3300         {
   3301           "if": {
   3302             "properties": {
   3303               "currency": {
   3304                 "const": "UYI"
   3305               }
   3306             },
   3307             "required": [
   3308               "currency"
   3309             ]
   3310           },
   3311           "then": {
   3312             "properties": {
   3313               "exponent": {
   3314                 "const": 0
   3315               }
   3316             }
   3317           }
   3318         },
   3319         {
   3320           "if": {
   3321             "properties": {
   3322               "currency": {
   3323                 "const": "UYU"
   3324               }
   3325             },
   3326             "required": [
   3327               "currency"
   3328             ]
   3329           },
   3330           "then": {
   3331             "properties": {
   3332               "exponent": {
   3333                 "const": 2
   3334               }
   3335             }
   3336           }
   3337         },
   3338         {
   3339           "if": {
   3340             "properties": {
   3341               "currency": {
   3342                 "const": "UYW"
   3343               }
   3344             },
   3345             "required": [
   3346               "currency"
   3347             ]
   3348           },
   3349           "then": {
   3350             "properties": {
   3351               "exponent": {
   3352                 "const": 4
   3353               }
   3354             }
   3355           }
   3356         },
   3357         {
   3358           "if": {
   3359             "properties": {
   3360               "currency": {
   3361                 "const": "UZS"
   3362               }
   3363             },
   3364             "required": [
   3365               "currency"
   3366             ]
   3367           },
   3368           "then": {
   3369             "properties": {
   3370               "exponent": {
   3371                 "const": 2
   3372               }
   3373             }
   3374           }
   3375         },
   3376         {
   3377           "if": {
   3378             "properties": {
   3379               "currency": {
   3380                 "const": "VED"
   3381               }
   3382             },
   3383             "required": [
   3384               "currency"
   3385             ]
   3386           },
   3387           "then": {
   3388             "properties": {
   3389               "exponent": {
   3390                 "const": 2
   3391               }
   3392             }
   3393           }
   3394         },
   3395         {
   3396           "if": {
   3397             "properties": {
   3398               "currency": {
   3399                 "const": "VES"
   3400               }
   3401             },
   3402             "required": [
   3403               "currency"
   3404             ]
   3405           },
   3406           "then": {
   3407             "properties": {
   3408               "exponent": {
   3409                 "const": 2
   3410               }
   3411             }
   3412           }
   3413         },
   3414         {
   3415           "if": {
   3416             "properties": {
   3417               "currency": {
   3418                 "const": "VND"
   3419               }
   3420             },
   3421             "required": [
   3422               "currency"
   3423             ]
   3424           },
   3425           "then": {
   3426             "properties": {
   3427               "exponent": {
   3428                 "const": 0
   3429               }
   3430             }
   3431           }
   3432         },
   3433         {
   3434           "if": {
   3435             "properties": {
   3436               "currency": {
   3437                 "const": "VUV"
   3438               }
   3439             },
   3440             "required": [
   3441               "currency"
   3442             ]
   3443           },
   3444           "then": {
   3445             "properties": {
   3446               "exponent": {
   3447                 "const": 0
   3448               }
   3449             }
   3450           }
   3451         },
   3452         {
   3453           "if": {
   3454             "properties": {
   3455               "currency": {
   3456                 "const": "WST"
   3457               }
   3458             },
   3459             "required": [
   3460               "currency"
   3461             ]
   3462           },
   3463           "then": {
   3464             "properties": {
   3465               "exponent": {
   3466                 "const": 2
   3467               }
   3468             }
   3469           }
   3470         },
   3471         {
   3472           "if": {
   3473             "properties": {
   3474               "currency": {
   3475                 "const": "XAD"
   3476               }
   3477             },
   3478             "required": [
   3479               "currency"
   3480             ]
   3481           },
   3482           "then": {
   3483             "properties": {
   3484               "exponent": {
   3485                 "const": 2
   3486               }
   3487             }
   3488           }
   3489         },
   3490         {
   3491           "if": {
   3492             "properties": {
   3493               "currency": {
   3494                 "const": "XAF"
   3495               }
   3496             },
   3497             "required": [
   3498               "currency"
   3499             ]
   3500           },
   3501           "then": {
   3502             "properties": {
   3503               "exponent": {
   3504                 "const": 0
   3505               }
   3506             }
   3507           }
   3508         },
   3509         {
   3510           "if": {
   3511             "properties": {
   3512               "currency": {
   3513                 "const": "XCD"
   3514               }
   3515             },
   3516             "required": [
   3517               "currency"
   3518             ]
   3519           },
   3520           "then": {
   3521             "properties": {
   3522               "exponent": {
   3523                 "const": 2
   3524               }
   3525             }
   3526           }
   3527         },
   3528         {
   3529           "if": {
   3530             "properties": {
   3531               "currency": {
   3532                 "const": "XCG"
   3533               }
   3534             },
   3535             "required": [
   3536               "currency"
   3537             ]
   3538           },
   3539           "then": {
   3540             "properties": {
   3541               "exponent": {
   3542                 "const": 2
   3543               }
   3544             }
   3545           }
   3546         },
   3547         {
   3548           "if": {
   3549             "properties": {
   3550               "currency": {
   3551                 "const": "XOF"
   3552               }
   3553             },
   3554             "required": [
   3555               "currency"
   3556             ]
   3557           },
   3558           "then": {
   3559             "properties": {
   3560               "exponent": {
   3561                 "const": 0
   3562               }
   3563             }
   3564           }
   3565         },
   3566         {
   3567           "if": {
   3568             "properties": {
   3569               "currency": {
   3570                 "const": "XPF"
   3571               }
   3572             },
   3573             "required": [
   3574               "currency"
   3575             ]
   3576           },
   3577           "then": {
   3578             "properties": {
   3579               "exponent": {
   3580                 "const": 0
   3581               }
   3582             }
   3583           }
   3584         },
   3585         {
   3586           "if": {
   3587             "properties": {
   3588               "currency": {
   3589                 "const": "YER"
   3590               }
   3591             },
   3592             "required": [
   3593               "currency"
   3594             ]
   3595           },
   3596           "then": {
   3597             "properties": {
   3598               "exponent": {
   3599                 "const": 2
   3600               }
   3601             }
   3602           }
   3603         },
   3604         {
   3605           "if": {
   3606             "properties": {
   3607               "currency": {
   3608                 "const": "ZAR"
   3609               }
   3610             },
   3611             "required": [
   3612               "currency"
   3613             ]
   3614           },
   3615           "then": {
   3616             "properties": {
   3617               "exponent": {
   3618                 "const": 2
   3619               }
   3620             }
   3621           }
   3622         },
   3623         {
   3624           "if": {
   3625             "properties": {
   3626               "currency": {
   3627                 "const": "ZMW"
   3628               }
   3629             },
   3630             "required": [
   3631               "currency"
   3632             ]
   3633           },
   3634           "then": {
   3635             "properties": {
   3636               "exponent": {
   3637                 "const": 2
   3638               }
   3639             }
   3640           }
   3641         },
   3642         {
   3643           "if": {
   3644             "properties": {
   3645               "currency": {
   3646                 "const": "ZWG"
   3647               }
   3648             },
   3649             "required": [
   3650               "currency"
   3651             ]
   3652           },
   3653           "then": {
   3654             "properties": {
   3655               "exponent": {
   3656                 "const": 2
   3657               }
   3658             }
   3659           }
   3660         }
   3661       ]
   3662     },
   3663     "unix_seconds": {
   3664       "type": "string",
   3665       "maxLength": 12,
   3666       "pattern": "^(?:0|[1-9][0-9]{0,10}|1[0-9]{11}|2[0-4][0-9]{10}|25[0-2][0-9]{9}|253[0-3][0-9]{8}|25340[0-1][0-9]{6}|253402[0-2][0-9]{5}|253402300[0-6][0-9]{2}|2534023007[0-8][0-9]{1}|25340230079[0-8][0-9]{0}|253402300799)(?![\\s\\S])"
   3667     },
   3668     "evidence_span": {
   3669       "type": "object",
   3670       "properties": {
   3671         "kind": {
   3672           "const": "span"
   3673         },
   3674         "source_id": {
   3675           "type": "string",
   3676           "minLength": 64,
   3677           "maxLength": 64,
   3678           "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
   3679         },
   3680         "revision": {
   3681           "type": "string",
   3682           "minLength": 1,
   3683           "pattern": "\\S"
   3684         },
   3685         "start": {
   3686           "type": "integer",
   3687           "minimum": 0,
   3688           "maximum": 2147483647
   3689         },
   3690         "end": {
   3691           "type": "integer",
   3692           "minimum": 0,
   3693           "maximum": 2147483647
   3694         },
   3695         "method": {
   3696           "type": "string",
   3697           "minLength": 1,
   3698           "pattern": "\\S"
   3699         }
   3700       },
   3701       "required": [
   3702         "kind",
   3703         "source_id",
   3704         "revision",
   3705         "start",
   3706         "end",
   3707         "method"
   3708       ],
   3709       "additionalProperties": false
   3710     },
   3711     "record_field_evidence": {
   3712       "type": "object",
   3713       "properties": {
   3714         "kind": {
   3715           "const": "record_field"
   3716         },
   3717         "source_id": {
   3718           "type": "string",
   3719           "minLength": 64,
   3720           "maxLength": 64,
   3721           "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
   3722         },
   3723         "revision": {
   3724           "type": "string",
   3725           "minLength": 1,
   3726           "pattern": "\\S"
   3727         },
   3728         "record_id": {
   3729           "type": "string",
   3730           "minLength": 64,
   3731           "maxLength": 64,
   3732           "pattern": "^[0-9a-f]{64}(?![\\s\\S])"
   3733         },
   3734         "field": {
   3735           "type": "string",
   3736           "minLength": 1,
   3737           "pattern": "\\S"
   3738         },
   3739         "method": {
   3740           "const": "trusted_record"
   3741         }
   3742       },
   3743       "required": [
   3744         "kind",
   3745         "source_id",
   3746         "revision",
   3747         "record_id",
   3748         "field",
   3749         "method"
   3750       ],
   3751       "additionalProperties": false
   3752     },
   3753     "evidence_ref": {
   3754       "oneOf": [
   3755         {
   3756           "$ref": "#/$defs/evidence_span"
   3757         },
   3758         {
   3759           "$ref": "#/$defs/record_field_evidence"
   3760         }
   3761       ]
   3762     },
   3763     "product_ref": {
   3764       "type": "object",
   3765       "properties": {
   3766         "phrase": {
   3767           "type": "string",
   3768           "minLength": 1
   3769         },
   3770         "catalogue_id": {
   3771           "type": [
   3772             "string",
   3773             "null"
   3774           ],
   3775           "minLength": 1
   3776         },
   3777         "resolution": {
   3778           "type": "string",
   3779           "enum": [
   3780             "resolved",
   3781             "unresolved"
   3782           ]
   3783         }
   3784       },
   3785       "required": [
   3786         "phrase",
   3787         "catalogue_id",
   3788         "resolution"
   3789       ],
   3790       "additionalProperties": false,
   3791       "allOf": [
   3792         {
   3793           "if": {
   3794             "properties": {
   3795               "resolution": {
   3796                 "const": "resolved"
   3797               }
   3798             },
   3799             "required": [
   3800               "resolution"
   3801             ]
   3802           },
   3803           "then": {
   3804             "properties": {
   3805               "catalogue_id": {
   3806                 "type": "string",
   3807                 "minLength": 1,
   3808                 "pattern": "\\S"
   3809               }
   3810             }
   3811           },
   3812           "else": {
   3813             "properties": {
   3814               "catalogue_id": {
   3815                 "type": "null"
   3816               }
   3817             }
   3818           }
   3819         }
   3820       ]
   3821     },
   3822     "execution": {
   3823       "type": "object",
   3824       "properties": {
   3825         "status": {
   3826           "type": "string",
   3827           "enum": [
   3828             "complete",
   3829             "degraded",
   3830             "failed"
   3831           ]
   3832         },
   3833         "provider_calls": {
   3834           "type": "integer",
   3835           "minimum": 0,
   3836           "maximum": 2147483647
   3837         },
   3838         "model": {
   3839           "anyOf": [
   3840             {
   3841               "const": "jev-1.14.0"
   3842             },
   3843             {
   3844               "type": "null"
   3845             }
   3846           ]
   3847         },
   3848         "question_bundle": {
   3849           "anyOf": [
   3850             {
   3851               "type": "string",
   3852               "minLength": 1,
   3853               "pattern": "\\S"
   3854             },
   3855             {
   3856               "type": "null"
   3857             }
   3858           ]
   3859         },
   3860         "degraded_reason": {
   3861           "anyOf": [
   3862             {
   3863               "type": "string",
   3864               "minLength": 1,
   3865               "pattern": "\\S"
   3866             },
   3867             {
   3868               "type": "null"
   3869             }
   3870           ]
   3871         }
   3872       },
   3873       "required": [
   3874         "status",
   3875         "provider_calls",
   3876         "model",
   3877         "question_bundle",
   3878         "degraded_reason"
   3879       ],
   3880       "additionalProperties": false,
   3881       "allOf": [
   3882         {
   3883           "if": {
   3884             "properties": {
   3885               "provider_calls": {
   3886                 "const": 0
   3887               }
   3888             },
   3889             "required": [
   3890               "provider_calls"
   3891             ]
   3892           },
   3893           "then": {
   3894             "properties": {
   3895               "model": {
   3896                 "type": "null"
   3897               },
   3898               "question_bundle": {
   3899                 "type": "null"
   3900               }
   3901             }
   3902           },
   3903           "else": {
   3904             "properties": {
   3905               "model": {
   3906                 "const": "jev-1.14.0"
   3907               },
   3908               "question_bundle": {
   3909                 "type": "string",
   3910                 "minLength": 1,
   3911                 "pattern": "\\S"
   3912               }
   3913             }
   3914           }
   3915         },
   3916         {
   3917           "if": {
   3918             "properties": {
   3919               "status": {
   3920                 "const": "degraded"
   3921               }
   3922             },
   3923             "required": [
   3924               "status"
   3925             ]
   3926           },
   3927           "then": {
   3928             "properties": {
   3929               "degraded_reason": {
   3930                 "type": "string",
   3931                 "minLength": 1,
   3932                 "pattern": "\\S"
   3933               }
   3934             }
   3935           },
   3936           "else": {
   3937             "properties": {
   3938               "degraded_reason": {
   3939                 "type": "null"
   3940               }
   3941             }
   3942           }
   3943         }
   3944       ]
   3945     },
   3946     "review": {
   3947       "type": "object",
   3948       "properties": {
   3949         "required": {
   3950           "type": "boolean"
   3951         },
   3952         "clarifications": {
   3953           "type": "array",
   3954           "items": {
   3955             "type": "object",
   3956             "properties": {
   3957               "field": {
   3958                 "type": "string",
   3959                 "minLength": 1
   3960               },
   3961               "reason": {
   3962                 "type": "string",
   3963                 "minLength": 1
   3964               }
   3965             },
   3966             "required": [
   3967               "field",
   3968               "reason"
   3969             ],
   3970             "additionalProperties": false
   3971           }
   3972         }
   3973       },
   3974       "required": [
   3975         "required",
   3976         "clarifications"
   3977       ],
   3978       "additionalProperties": false
   3979     }
   3980   }
   3981 }