Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional isShownKey prop to Operation component to allow overriding #5196

3 changes: 2 additions & 1 deletion src/core/components/operation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default class Operation extends PureComponent {
let {
deprecated,
isShown,
isShownKey,
path,
method,
op,
Expand All @@ -85,7 +86,7 @@ export default class Operation extends PureComponent {
let responses = operation.get("responses")
let parameters = getList(operation, ["parameters"])
let operationScheme = specSelectors.operationScheme(path, method)
let isShownKey = ["operations", tag, operationId]
isShownKey = isShownKey || ["operations", tag, operationId]
let extensions = getExtensions(operation)

const Responses = getComponent("responses")
Expand Down