-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] where or how can I get the jsonix types schema #216
Comments
There's no schema. Everything is documented here: https://github.com/highsource/jsonix/wiki/Mapping-XML-to-JavaScript-Objects |
how do you do this jsonschema? http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema hardcoded? o.O |
Handwritten. |
@highsource Hello! I have one question without new issue about XMLSchema.jsonschema. Why all simple type like <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="element" type="ElementType">
</xsd:element>
<xsd:complexType name="ElementType">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="integerElement" type="xsd:int"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
I generate JSON scheme "integerElement": {
"title": "integerElement",
"allOf": [
{
"anyOf": [
{
"type": "integer",
"maximum": 2147483647,
"minimum": -2147483648
},
{
"type": "null"
}
],
"description": "http://www.w3.org/TR/xmlschema-2/#int"
}
],
"propertyType": "element",
"elementName": {
"localPart": "integerElement",
"namespaceURI": ""
}
}
|
Hi! I'm trying to convert an xml schema to graphql schema, everything goings fine but I have this problem: the Duration definition, for example is a jsonix definition, so I can't get the schema to describe it, where or how can I get the schema like this:
this fragment was extracted from class file generated with the jsonix-schema-compiler-full.jar
the Jsonix.Schema.XSD[.....].INSTANCE (Jsonix.Schema.XSD.Duration.Instance for example) not have enough information
The text was updated successfully, but these errors were encountered: