openapi-tools / swagger-maven-plugin

Maven plugin to activate the Swagger Core library to generate OpenAPI documentation.
MIT License
72 stars 46 forks source link

Add pretty-print option to JSON generation #11

Closed cjelger closed 5 years ago

cjelger commented 5 years ago

It would be nice to have an option to generate a "pretty-printed" JSON schema. The current JSON schema is nicely compact but it's unreadable by humans.

It should be straightforward to add the option and the SerializationFeature.INDENT_OUTPUT configuration to the Jackson mapper.

cjelger commented 5 years ago

I already have a ready PR for this feature, but I'm waiting for some official approval from my employer to be able to commit it.

langecode commented 5 years ago

Resolved with PR #13