Hallo zusammen,
ich fasse mich mal ganz kurz, ich habe ein JSON Schema und möchte das gerne zu XSD Convertieren. Stundenlange Suche hat bei Google nichts gebracht.
Hier ist das JSON Schema:
Gruß
semcor
ich fasse mich mal ganz kurz, ich habe ein JSON Schema und möchte das gerne zu XSD Convertieren. Stundenlange Suche hat bei Google nichts gebracht.
Hier ist das JSON Schema:
Code:
{ "$schema": "http://json-schema.org/schema#", "type": "object", "definitions": { "DynamicAttribute": { "properties": { "c": { "allOf": [ { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/MandatoryString" }, { "maxLength": 10 } ] }, "v": { "allOf": [ { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/MandatoryString" }, { "maxLength": 1000 } ] } }, "additionalProperties": false, "required": [ "c", "v" ] }, "HouseholdProgramContext": { "properties": { "pc": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/ProgramCode" }, "hsc": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/DictionaryCode1" } }, "additionalProperties": false, "required": [ "pc", "hsc" ] }, "LoyaltyCard": { "properties": { "cid": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/Long10" }, "ciid": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/CIID" }, "pc": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/ProgramCode" }, "ctc": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/DictionaryCode1" }, "csc": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/DictionaryCode1" } }, "additionalProperties": false, "required": [ "cid", "ciid", "pc", "ctc", "csc" ] }, "LoyaltyMember": { "properties": { "mid": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/Long10" }, "uuid": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/UUID" }, "tuuid": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/UUID" }, "cs": { "allOf": [ { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/MandatoryArray" }, { "items": { "$ref": "#/definitions/LoyaltyCard" } } ] }, "ps": { "allOf": [ { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/MandatoryArray" }, { "items": { "$ref": "#/definitions/MemberProgramContext" } } ] }, "das": { "allOf": [ { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/MandatoryArray" }, { "items": { "$ref": "#/definitions/DynamicAttribute" } } ] } }, "additionalProperties": false, "required": [ "mid" ] }, "MemberProgramContext": { "properties": { "pc": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/ProgramCode" }, "msc": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/DictionaryCode1" }, "mtc": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/DictionaryCode2" }, "ed": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/ClmDateTime" }, "td": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/ClmDateTime" }, "das": { "allOf": [ { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/MandatoryArray" }, { "items": { "$ref": "#/definitions/DynamicAttribute" } } ] } }, "additionalProperties": false, "required": [ "pc", "msc" ] } }, "properties": { "cc": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/DictionaryCode2" }, "bc": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/DictionaryCode2" }, "hid": { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/Long10" }, "ms": { "allOf": [ { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/MandatoryArray" }, { "items": { "$ref": "#/definitions/LoyaltyMember" } } ] }, "ps": { "allOf": [ { "$ref": "IF-000.01_common_batch_cmn.json#/definitions/MandatoryArray" }, { "items": { "$ref": "#/definitions/HouseholdProgramContext" } } ] } }, "additionalProperties": false, "required": [ "cc", "bc", "hid" ] }
semcor
Comment