You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `FILTER` parameter allows selective inclusion of API operations based on specific criteria. It applies the `x-internal: true` property to operations that do **not** match the specified values, preventing them from being generated. Multiple filters can be separated by a semicolon.
649
649
650
-
### Available Filters
650
+
### Available FILTER filters
651
651
652
652
- **`operationId`**
653
653
When set to `operationId:addPet|getPetById`, operations **not** matching `addPet` or `getPetById` will be marked as internal (`x-internal: true`), and excluded from generation. Matching operations will have `x-internal: false`.
@@ -715,3 +715,34 @@ Into this securityScheme:
715
715
scheme: bearer
716
716
type: http
717
717
```
718
+
719
+
-`REMOVE_FILTER`
720
+
721
+
The `REMOVE_FILTER` parameter allows the removal of elements in an openAPI document. A semicolon can separate multiple filters.
722
+
723
+
### Available REMOVE_FILTER filters
724
+
725
+
-**`internal`**
726
+
When specified as `internal` or set to `internal:true`, all operations, schemas, properties and parameters marked with x-internal: true are removed from the document. Optionally set individual options like in `internal:operations|schemas|properties|parameters`
727
+
728
+
-**`deprecated`**
729
+
When specified as `deprecated` or set to `deprecated:true`, all operations, schemas, properties and parameters marked with deprecated: true are removed.
730
+
731
+
-**`tags`**
732
+
When specified as `tags` or set to `tags:true`, all tags are removed.
733
+
When set to `tags:store|user` all tags whose name is store or user are removed.
734
+
When set to `tags:keepOnlyFirstTag` perform the KEEP_ONLY_FIRST_TAG_IN_OPERATION normalization
735
+
736
+
-**`vendorExtensions`**
737
+
When specified as `vendorExtensions` or set to `vendorExtensions:true`, remove all vendorExtensions (including x-internal).
738
+
When set to `vendorExtensions:x-role|x-groups`, remove all `x-role` and `x-groups` vendorExtensions. When set to `vendorExtensions:x-internal`, perform the equivalent of REMOVE_X_INTERNAL normalization.
739
+
740
+
-**`unused`**
741
+
When specified as `unused` or set to `unused:true`, remove all unused schemas, tags, requestBodies, responses and parameters.
742
+
Optionally set individual options like in `unused:schemas|tags|requestBodies|responses|parameters`
0 commit comments