Closed mamatsunami closed 9 months ago
@mamatsunami this is a great addition for the filtering option. It suits better than making it a separate option. Thanks again for taking the time and effort to provide a ready to merge PR.
hi @mamatsunami,
Just wanted to let you know, that there is a new release of OpenAPI format which contains your PR. I wanted to thank you for your contribution.
Having a dedicated option
--keepEmptySchema
to prevent removal of empty schema object wasn't flexible enough.I decided to completely remove it and instead I added a
preserveEmptyObjects
which is a filtering option.It can be :
['examples', 'schema']
value, we preserve all empty objects defined inside examples and schema paths.