feat(swagger-ui-react): add showExtensions option (#7563)

Closes #5892
This commit is contained in:
glebbash
2021-11-08 10:37:28 +02:00
committed by GitHub
parent 83021df9b0
commit d7ec726886
2 changed files with 8 additions and 0 deletions

View File

@@ -101,6 +101,12 @@ HTTP methods that have the Try it out feature enabled. An empty array disables T
⚠️ This prop is currently only applied once, on mount. Changes to this prop's value will not be propagated to the underlying Swagger UI instance. A future version of this module will remove this limitation, and the change will not be considered a breaking change.
#### `showExtensions`: PropTypes.bool
Controls the display of vendor extension (`x-`) fields and values for Operations, Parameters, Responses, and Schema.
⚠️ This prop is currently only applied once, on mount. Changes to this prop's value will not be propagated to the underlying Swagger UI instance. A future version of this module will remove this limitation, and the change will not be considered a breaking change.
#### `showMutatedRequest`: PropTypes.bool
If set to `true`, uses the mutated request returned from a requestInterceptor to produce the curl command in the UI, otherwise the request before the requestInterceptor was applied is used.