jsonschema-generator icon indicating copy to clipboard operation
jsonschema-generator copied to clipboard

Maven plugin - Configuration of the generator

Open JanLabrie opened this issue 6 years ago • 3 comments

The configuration of a Generator in the pom.xml should support :

  • Base definition: One of the labels of OptionPreset. PLAIN_JSON as the default value.
  • Options that have to be enabled
  • Options that have to be disabled

JanLabrie avatar Apr 22 '20 11:04 JanLabrie

Proposal:

<options>
    <preset>FULL_DOCUMENTATION</preset>
    <enabled>
        <option>DEFINITIONS_FOR_ALL_OBJECTS</option>
        <option>FORBIDDEN_ADDITIONAL_PROPERTIES_BY_DEFAULT</option>
    </enabled>
    <disabled>
        <option>SIMPLIFIED_ENUMS</option>
    </disabled>
</options>

What do you think Carsten?

JanLabrie avatar Apr 22 '20 15:04 JanLabrie

I like it.

CarstenEnglert avatar Apr 22 '20 16:04 CarstenEnglert

PR merged. Issue can be closed.

JanLabrie avatar Apr 23 '20 21:04 JanLabrie