@@ -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.
|
⚠️ 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
|
#### `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.
|
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.
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ export default class SwaggerUI extends React.Component {
|
|||||||
defaultModelExpandDepth: this.props.defaultModelExpandDepth,
|
defaultModelExpandDepth: this.props.defaultModelExpandDepth,
|
||||||
displayOperationId: this.props.displayOperationId,
|
displayOperationId: this.props.displayOperationId,
|
||||||
tryItOutEnabled: this.props.tryItOutEnabled,
|
tryItOutEnabled: this.props.tryItOutEnabled,
|
||||||
|
showExtensions: this.props.showExtensions,
|
||||||
showMutatedRequest: typeof this.props.showMutatedRequest === "boolean" ? this.props.showMutatedRequest : true,
|
showMutatedRequest: typeof this.props.showMutatedRequest === "boolean" ? this.props.showMutatedRequest : true,
|
||||||
deepLinking: typeof this.props.deepLinking === "boolean" ? this.props.deepLinking : false,
|
deepLinking: typeof this.props.deepLinking === "boolean" ? this.props.deepLinking : false,
|
||||||
})
|
})
|
||||||
@@ -112,4 +113,5 @@ SwaggerUI.defaultProps = {
|
|||||||
defaultModelsExpandDepth: 1,
|
defaultModelsExpandDepth: 1,
|
||||||
presets: [],
|
presets: [],
|
||||||
deepLinking: false,
|
deepLinking: false,
|
||||||
|
showExtensions: false,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user