Closed celestino closed 7 years ago
Thank you for the bug report. I have added support for xs:simpleContent
definitions. Your example schema now returns the following:
{
"definitions": {
"someRestrictionType": {
"type":"number",
"minimum":0,
"exclusiveMinimum":false
},
"someType": {
"properties": {
"id": {
"type":"string"
},
"value": {
"$ref":"#/definitions/someRestrictionType"
}
},
"type":"object",
"required": [
"value"
]
}
},
"allOf": [
{
"$ref":"#/definitions/someType"
}
]
}
The updated version is on npm as 1.9.0
.
The complextType
someType
will not be added to the JSON definition output. Looks like thesimpleContent
element is not recorginzed by the translator.input
output