feat(swagger-ui-react): add request snippets configuration (#7536)
Closes #7523
This commit is contained in:
@@ -125,6 +125,18 @@ Controls whether the "Try it out" section should start enabled. The default is f
|
||||
|
||||
⚠️ 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.
|
||||
|
||||
#### `requestSnippetsEnabled`: PropTypes.bool,
|
||||
|
||||
Enables the request snippet section. When disabled, the legacy curl snippet will be used. The default is false.
|
||||
|
||||
⚠️ 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.
|
||||
|
||||
#### `requestSnippets`: PropTypes.object,
|
||||
|
||||
Configures the request snippet core plugin. See Swagger UI's [Display Configuration](https://github.com/swagger-api/swagger-ui/blob/master/docs/usage/configuration.md#display) for more details.
|
||||
|
||||
⚠️ 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.
|
||||
|
||||
Reference in New Issue
Block a user