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: flavors/swagger-ui-react/README.md
+12
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,18 @@ Controls whether the "Try it out" section should start enabled. The default is f
125
125
126
126
⚠️ 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.
127
127
128
+
#### `requestSnippetsEnabled`: PropTypes.bool,
129
+
130
+
Enables the request snippet section. When disabled, the legacy curl snippet will be used. The default is false.
131
+
132
+
⚠️ 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.
133
+
134
+
#### `requestSnippets`: PropTypes.object,
135
+
136
+
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.
137
+
138
+
⚠️ 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.
0 commit comments