Closed NicolasLabrousse closed 1 year ago
Hi Nicolas. Adding existingJavaType should not break compatibility with other tools. JSON schemas allows extension properties, so no tool should fail if it sees a property on a schema that it does not recognise.
I'm going to close this as:
existingJavaType
existingJavaType
should never break other JSON Schema toolsexistingJavaType
already gives you classes that perform perfect data binding, and you're looking for a stylistic change in the Java (and we intentionally tend to avoid making changes or new configuration that relates purely a question of preferred Java style).
Hello,
In our project we have a jsonSchema of the following form :
We are using the generated class from this schema to map a configuration file automatically with Springboot. To be able to do that, the generated class member must have the exact same name as the one in configuration file. Our problem is with map, in this example, "concurrency-policies". When executing the generation, we end up with something like this :
But we want something like this :
In order to do that, we can modify our JsonSchema with the property "existingJavaType". This modification will break the compatibitly with other jsonSchema tools and that's not a possibility for us as this jsonSchema is part of the documentation of our service.
Thanks you !