IntelliJ plugin XSD to JSON Schema - documentation
Posted: Thu Jun 29, 2023 8:06 am
Hi,
thank you for your intellij plugin (both XSD->JSON Schema and XML->JSON->YAML).
My task is to create OpenAPI v3 yaml file from XML Schema.
I managed to use your plugins:
1. xsd -> json schema
2. json -> yaml
3. I changed header to match swagger v2 format
4. an online service openapi v2 -> openapi v3
All ok (xsd -> openapi v3 would be a really good plugin if you provide one).
My problem - documentation elements in xsd are skipped during both transformations: xsd -> json schema, json schema to yaml
I would like to see in json schema:
.. and in yaml:
Is it somehow possible please?
Thank you
Peter
thank you for your intellij plugin (both XSD->JSON Schema and XML->JSON->YAML).
My task is to create OpenAPI v3 yaml file from XML Schema.
I managed to use your plugins:
1. xsd -> json schema
2. json -> yaml
3. I changed header to match swagger v2 format
4. an online service openapi v2 -> openapi v3
All ok (xsd -> openapi v3 would be a really good plugin if you provide one).
My problem - documentation elements in xsd are skipped during both transformations: xsd -> json schema, json schema to yaml
Code: Select all
<complexType name="TMOS">
<annotation>
<documentation>Documentation text 1</documentation>
</annotation>
<sequence>
<element name="ME">
<annotation>
<documentation>Documentation text 2</documentation>
</annotation>
<simpleType>
<restriction base="string">
<maxLength value="250" />
</restriction>
</simpleType>
</element>
</sequence>
</complexType>
Code: Select all
"TMOS": {
"description": "Documentation text 1",
"type": "object",
"required": ["ME"],
"properties": {
"ME": {
"type": "string",
"description": "Documentation text 2"
}
}
},
Code: Select all
TMOS:
description: Documentation text 1
type: object
required:
- ME
properties:
ME:
description: Documentation text 2
type: string
Thank you
Peter