Loading 103120/dictionaries/ts_103120_Dictionaries.schema.json 0 → 100644 +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" } utils/translate_spec.py +5 −1 Original line number Diff line number Diff line Loading @@ -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 Loading utils/ts103120_config.json +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" }, Loading Loading
103120/dictionaries/ts_103120_Dictionaries.schema.json 0 → 100644 +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" }
utils/translate_spec.py +5 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
utils/ts103120_config.json +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" }, Loading