Tmkasun ft/5367 support passing presets and default models expand depth (#6275)

* feat(swagger-ui-react): support for presets and defaultModelsExpandDepth


Co-authored-by: Kasun Thennakoon <tmkasun@gmail.com>
This commit is contained in:
Tim Lai
2020-07-29 16:50:16 -07:00
committed by GitHub
parent b99ebe7dd3
commit aebfcc091a
2 changed files with 14 additions and 3 deletions

View File

@@ -101,6 +101,12 @@ If set to `true`, uses the mutated request returned from a requestInterceptor to
⚠️ 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.
#### `presets`: PropTypes.arrayOf(PropTypes.func),
An array of functions that augment and modify Swagger UI's functionality. See Swagger UI's [Plugin API](https://github.com/swagger-api/swagger-ui/blob/master/docs/customization/plugin-api.md) 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.