hyf

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

quantity.schema.json (1039B)


      1 {
      2   "$comment": "canonical domain Quantity; wire carries reported value/unit/qualifier, normalization derives scale/dimension",
      3   "type": "object",
      4   "properties": {
      5     "state": {
      6       "type": "string",
      7       "enum": [
      8         "known",
      9         "unknown"
     10       ]
     11     },
     12     "value": {
     13       "type": [
     14         "string",
     15         "null"
     16       ],
     17       "maxLength": 19
     18     },
     19     "scale": {
     20       "type": [
     21         "integer",
     22         "null"
     23       ],
     24       "minimum": 0,
     25       "maximum": 9
     26     },
     27     "unit": {
     28       "type": [
     29         "string",
     30         "null"
     31       ]
     32     },
     33     "dimension": {
     34       "type": [
     35         "string",
     36         "null"
     37       ],
     38       "enum": [
     39         "mass",
     40         "volume",
     41         "count",
     42         "unknown",
     43         null
     44       ]
     45     },
     46     "qualifier": {
     47       "type": "string",
     48       "enum": [
     49         "exact",
     50         "approximate"
     51       ]
     52     },
     53     "original_expression": {
     54       "type": [
     55         "string",
     56         "null"
     57       ]
     58     }
     59   },
     60   "required": [
     61     "state"
     62   ],
     63   "additionalProperties": false
     64 }