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: openapi/cmd/README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -251,10 +251,17 @@ Create a YAML configuration file to control sanitization behavior:
251
251
```yaml
252
252
# sanitize-config.yaml
253
253
254
-
#Only remove extensions that match these patterns, null will remove ALL extensions, [] will remove no extensions (default: null, removes ALL extensions)
254
+
#Extension filtering (not provided or empty = remove all extensions by default)
255
255
extensionPatterns:
256
-
- "x-go-*"
257
-
- "x-internal-*"
256
+
# Whitelist: keep only matching extensions (when provided, only these are kept)
257
+
# Keep takes precedence over Remove when both are specified
258
+
keep:
259
+
- "x-speakeasy-schema-*"# Example: keep only schema-related extensions
260
+
# Blacklist: remove only matching extensions, keep all others
261
+
remove:
262
+
- "x-go-*"
263
+
- "x-internal-*"
264
+
- "x-speakeasy-*"# Combined with Keep above, removes all x-speakeasy-* EXCEPT x-speakeasy-schema-*
Copy file name to clipboardExpand all lines: openapi/cmd/sanitize.go
+30-11Lines changed: 30 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -53,10 +53,17 @@ Benefits of sanitization:
53
53
54
54
Configuration file format (YAML):
55
55
56
-
# Only remove extensions that match these patterns, null will remove ALL extensions, [] will remove no extensions (default: null, removes ALL extensions)
56
+
# Extension filtering (not provided or empty = remove all extensions by default)
57
57
extensionPatterns:
58
-
- "x-go-*"
59
-
- "x-internal-*"
58
+
# Keep only matching extensions (when provided, only these are kept)
59
+
# Keep takes precedence over Remove when both are specified
0 commit comments