stoicflame / enunciate-openapi

OpenAPI3 module for Enunciate
Apache License 2.0
10 stars 10 forks source link

Add flag to exclude examples #20

Closed ddijk closed 5 years ago

ddijk commented 5 years ago

Examples are included by default for backward compatibility, but the option is added to exclude them.

This flag can be added to the Enunciate config file, like so: <openapi excludeExamples="true" ...

If this new attribute is omitted, then the examples are still generated in the output YAML file.

jskov-jyskebank-dk commented 5 years ago

The jackson has a similar option, but is disableExamples, defaulting to false.

I think you should change the option to match that name.

And also update the readme with information about the new flag.

Thanks!