Skip to content
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

Support long numbers #29

Closed
ilyanep opened this issue Jun 9, 2020 · 0 comments
Closed

Support long numbers #29

ilyanep opened this issue Jun 9, 2020 · 0 comments

Comments

@ilyanep
Copy link
Contributor

ilyanep commented Jun 9, 2020

This JSON Schema:

        "version": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },

Is turned into this XSD:

         <element name="version">
            <simpleType>
               <restriction base="int">
                  <minInclusive value="1"/>
                  <maxInclusive value="-1"/>
               </restriction>
            </simpleType>
         </element>

Instead, I believe you could use the XML type long and use Longs in the java that reads in those mins and maxes.

ilyanep added a commit to ilyanep/jsons2xsd that referenced this issue Jun 9, 2020
ilyanep added a commit to ilyanep/jsons2xsd that referenced this issue Jun 11, 2020
@ethlo ethlo closed this as completed in 8277d91 Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant