Skip to content

Commit

Permalink
Merge pull request #6 from danielz-42/develop
Browse files Browse the repository at this point in the history
Add format mapping for double, float and ignore unknown formats
  • Loading branch information
schaermu authored May 14, 2024
2 parents f0cd5bc + 93ac8f2 commit ebee638
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/swisspush/jsons2xsd/Jsons2XsdMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ private void generate(File input, File output) throws IOException {
.customTypeMapping(JsonSimpleType.INTEGER, "long", XsdSimpleType.LONG)
.customTypeMapping(JsonSimpleType.INTEGER, "int64", XsdSimpleType.LONG)
.customTypeMapping(JsonSimpleType.STRING, "uuid", XsdSimpleType.STRING)
.customTypeMapping(JsonSimpleType.NUMBER, "double", XsdSimpleType.DECIMAL)
.customTypeMapping(JsonSimpleType.NUMBER, "float", XsdSimpleType.DECIMAL)
.ignoreUnknownFormats(true)
.validateXsdSchema(false);

if(useGenericItemNames) {
Expand Down

0 comments on commit ebee638

Please sign in to comment.