Commit 42254d0b authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Merge branch 'cr/103120/083' into 'meeting/LI68'

TS 103 120 CR083 - JSON schema for dictionaries

See merge request !196
parents 960dc964 6ef22ff3
Loading
Loading
Loading
Loading
Loading
+65 −0
Original line number Diff line number Diff line
{
  "$id": "ts_103280_Dictionaries_2019_10",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {
    "Dictionaries": {
      "type": "object",
      "properties": {
        "dictionaries:Dictionary": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Dictionary"
          }
        }
      },
      "required": []
    },
    "Dictionary": {
      "type": "object",
      "properties": {
        "dictionaries:Owner": {
          "type": "string"
        },
        "dictionaries:Name": {
          "type": "string"
        },
        "dictionaries:DictionaryEntries": {
          "$ref": "#/$defs/DictionaryEntries"
        }
      },
      "required": [
        "dictionaries:Owner",
        "dictionaries:Name",
        "dictionaries:DictionaryEntries"
      ]
    },
    "DictionaryEntries": {
      "type": "object",
      "properties": {
        "dictionaries:DictionaryEntry": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DictionaryEntry"
          }
        }
      },
      "required": []
    },
    "DictionaryEntry": {
      "type": "object",
      "properties": {
        "dictionaries:Value": {
          "type": "string"
        },
        "dictionaries:Meaning": {
          "type": "string"
        }
      },
      "required": [
        "dictionaries:Value",
        "dictionaries:Meaning"
      ]
    }
  },
  "$ref": "#/$defs/Dictionaries"
}
+5 −1
Original line number Diff line number Diff line
@@ -89,6 +89,10 @@ if __name__ == "__main__":
            js['$defs']['HI1Message']['properties'].pop('xmldsig:Signature')
            js['$defs']['HI1Message']['properties']['Signature'] = json_signature_struct

        
        if 'output' in ns_map[schema_tuple[0]]:
            js_path = Path(ns_map[schema_tuple[0]]['output']) / convert_xsd_to_filename(schema_tuple[1])
        else:
            js_path = output_path / convert_xsd_to_filename(schema_tuple[1])

        # TODO - Special case - abstract HI1Object
+4 −0
Original line number Diff line number Diff line
{
    "schemas" : {
        "./103120/dictionaries/ts_103120_Dictionaries.xsd" : {
            "prefix" : "dictionaries",
            "output" : "./103120/dictionaries/"
        },
        "./103120/schema/xsd/ts_103120_Authorisation.xsd" : {
            "prefix" : "auth"
        },