thim81 / openapi-format

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

Filter - Added inverse filtering for flags and flagValues #105

Closed thim81 closed 1 month ago

thim81 commented 2 months ago

This PR introduces the inverseFlags and inverseFlagValues option.

Both are a very aggressive filters, since it will only keep the elements where the flag or flag with the values are present.

For now, they focuss on inverse filtering for flags & flagValues for operations, components, tags, x-tagGroups elements. The elements like info, servers remain untouched by the inverseFlags & inverseFlagValues filtering.