feat(swagger-ui-react): option for showMutatedRequest (#6273)

Co-authored-by: neel <neelima.sri.vathsavai@autodesk.com>
This commit is contained in:
Tim Lai
2020-07-29 16:11:20 -07:00
committed by GitHub
parent fd5a59a3fd
commit b99ebe7dd3
2 changed files with 9 additions and 1 deletions

View File

@@ -95,6 +95,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.
#### `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.
⚠️ 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.
## Limitations
* Not all configuration bindings are available.