thim81 / openapi-format

Format an OpenAPI document by ordering, formatting and filtering fields.
MIT License
77 stars 14 forks source link

feat: add preserveEmptyObjects filter option + remove keepEmptySchema option #85

Closed mamatsunami closed 9 months ago

mamatsunami commented 9 months ago

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 :

thim81 commented 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.

thim81 commented 8 months ago

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.