lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

vector.schema.json (1536B)


      1 {
      2   "$schema": "http://json-schema.org/draft-07/schema#",
      3   "$id": "https://radroots.org/core/conformance/vector.schema.json",
      4   "title": "radroots core conformance vector",
      5   "type": "object",
      6   "required": [
      7     "suite",
      8     "contract_version",
      9     "vectors"
     10   ],
     11   "properties": {
     12     "suite": {
     13       "type": "string",
     14       "minLength": 1
     15     },
     16     "contract_version": {
     17       "type": "string",
     18       "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
     19     },
     20     "vectors": {
     21       "type": "array",
     22       "items": {
     23         "type": "object",
     24         "required": [
     25           "id",
     26           "kind",
     27           "input"
     28         ],
     29         "properties": {
     30           "id": {
     31             "type": "string",
     32             "minLength": 1
     33           },
     34           "kind": {
     35             "type": "string",
     36             "minLength": 1
     37           },
     38           "input": {},
     39           "expected": {},
     40           "expected_error_contains": {
     41             "type": "string",
     42             "minLength": 1
     43           }
     44         },
     45         "oneOf": [
     46           {
     47             "required": [
     48               "expected"
     49             ],
     50             "not": {
     51               "required": [
     52                 "expected_error_contains"
     53               ]
     54             }
     55           },
     56           {
     57             "required": [
     58               "expected_error_contains"
     59             ],
     60             "not": {
     61               "required": [
     62                 "expected"
     63               ]
     64             }
     65           }
     66         ],
     67         "additionalProperties": false
     68       }
     69     }
     70   },
     71   "additionalProperties": false
     72 }