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
Copy file name to clipboardExpand all lines: docs/customization.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -739,9 +739,9 @@ The `REMOVE_FILTER` parameter allows the removal of elements in an openAPI docum
739
739
-**`deprecated`**
740
740
When specified as `deprecated` or set to `deprecated:true`, all operations, schemas, properties and parameters marked with `deprecated: true` are removed.
741
741
742
-
-**`removeTags`**
742
+
-**`removeTags`**
743
743
When specified as `removeTags` or set to `removeTags:true`, all tags are removed from the operations.
744
-
When set to `removeTags:store|user` all tags whose name is `store` or `user` are removed.
744
+
When set to `removeTags:store|user` all tags named is `store` or `user` are removed.
745
745
When set to `removeTags:keepOnlyFirstTag` perform the KEEP_ONLY_FIRST_TAG_IN_OPERATION normalization
746
746
747
747
-**`removeVendorExtensions`**
@@ -750,11 +750,22 @@ The `REMOVE_FILTER` parameter allows the removal of elements in an openAPI docum
750
750
751
751
-**`x-`**
752
752
When specified as `x-role`, remove operations, schemas, properties and parameters having a vendor extension `x-role`.
753
-
When set to `x-role:admin|superuser`, remove operations, schemas, properties and parameters marked with vendorExtension `x-role:admin` or `x-role:superuser`.
753
+
When set to `x-role:admin|superuser`, remove operations, schemas, properties and parameters marked with vendorExtension `x-role:admin` or `x-role:superuser`.
754
754
755
755
-**`tags`**
756
756
When set as `tags:user|store`, remove operations marked with tags: user or store.
757
757
758
+
-**`headers`**
759
+
When set as `headers`, remove all headers.
760
+
When set as `headers:x-api-key`, remove header parameters named `x-api-key`.
761
+
762
+
-**`cookies`**
763
+
When set as `cookies`, remove all cookies.
764
+
When set as `cookies:x-api-key`, remove cookie parameters named `x-api-key`.
765
+
766
+
-**`queryParams`**
767
+
When set as `queryParams:offset|limit`, remove request parameters named `offset` or `limit`.`.
768
+
758
769
-**`unused`**
759
770
When specified as `unused` or set to `unused:true`, remove all unused schemas, tags, requestBodies, responses and parameters.
760
771
Optionally set individual options like in `unused:schemas|tags|requestBodies|responses|parameters`
getLogger().info("Parameter `{}` in `{}` marked as internal (x-internal: true) by the {} FILTER", parameter.getName(), operationInfo, this.vendorExtensions);
2269
+
getLogger().info("Parameter `{}` in `{}` marked as internal (x-internal: true) by FILTER", parameter.getName(), operationInfo);
2239
2270
}
2240
2271
} else {
2241
-
if (!matchExtension(parameterExtensions)) {
2272
+
if (!matchParameterExtension(path, parameter)) {
2242
2273
parameter.addExtension(X_INTERNAL, true);
2243
-
getLogger().info("Parameter `{}` in `{}` marked as internal (x-internal: true) by the {} FILTER", parameter.getName(), path, this.vendorExtensions);
2274
+
getLogger().info("Parameter `{}` in `{}` marked as internal (x-internal: true) by FILTER", parameter.getName(), path);
0 commit comments