diff --git a/src/main/java/org/swisspush/jsons2xsd/Jsons2XsdMojo.java b/src/main/java/org/swisspush/jsons2xsd/Jsons2XsdMojo.java index f728958..4ed3eac 100644 --- a/src/main/java/org/swisspush/jsons2xsd/Jsons2XsdMojo.java +++ b/src/main/java/org/swisspush/jsons2xsd/Jsons2XsdMojo.java @@ -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) {