Skip to content

Commit d32fe02

Browse files
authored
Merge pull request #3722 from swagger-api/bug/3718-oas3-requestbody-errors
Fix problems regarding request body display
2 parents ca28c8c + 446bda3 commit d32fe02

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/core/plugins/oas3/auth-extensions/wrap-selectors.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { createSelector } from "reselect"
2+
import { List } from "immutable"
23
import { isOAS3 as isOAS3Helper } from "../helpers"
34

45

@@ -23,6 +24,6 @@ const OAS3NullSelector = onlyOAS3(nullSelector)
2324
export const shownDefinitions = OAS3NullSelector
2425
export const definitionsToAuthorize = OAS3NullSelector
2526
export const getDefinitionsByNames = OAS3NullSelector
26-
export const authorized = OAS3NullSelector
27+
export const authorized = onlyOAS3(() => List())
2728
export const isAuthorized = OAS3NullSelector
2829
export const getConfigs = OAS3NullSelector

src/core/plugins/oas3/components/request-body.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { OrderedMap } from "immutable"
66
const RequestBody = ({
77
requestBody,
88
getComponent,
9+
getConfigs,
910
specSelectors,
1011
contentType,
1112
isExecute,
@@ -27,6 +28,7 @@ const RequestBody = ({
2728
}
2829
<ModelExample
2930
getComponent={ getComponent }
31+
getConfigs={ getConfigs }
3032
specSelectors={ specSelectors }
3133
expandDepth={1}
3234
isExecute={isExecute}
@@ -46,6 +48,7 @@ const RequestBody = ({
4648
RequestBody.propTypes = {
4749
requestBody: ImPropTypes.orderedMap.isRequired,
4850
getComponent: PropTypes.func.isRequired,
51+
getConfigs: PropTypes.func.isRequired,
4952
specSelectors: PropTypes.object.isRequired,
5053
contentType: PropTypes.string.isRequired,
5154
isExecute: PropTypes.bool.isRequired,

0 commit comments

Comments
 (0)