Fix problems regarding request body display
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import { createSelector } from "reselect"
|
import { createSelector } from "reselect"
|
||||||
|
import { List } from "immutable"
|
||||||
import { isOAS3 as isOAS3Helper } from "../helpers"
|
import { isOAS3 as isOAS3Helper } from "../helpers"
|
||||||
|
|
||||||
|
|
||||||
@@ -23,6 +24,6 @@ const OAS3NullSelector = onlyOAS3(nullSelector)
|
|||||||
export const shownDefinitions = OAS3NullSelector
|
export const shownDefinitions = OAS3NullSelector
|
||||||
export const definitionsToAuthorize = OAS3NullSelector
|
export const definitionsToAuthorize = OAS3NullSelector
|
||||||
export const getDefinitionsByNames = OAS3NullSelector
|
export const getDefinitionsByNames = OAS3NullSelector
|
||||||
export const authorized = OAS3NullSelector
|
export const authorized = onlyOAS3(() => List())
|
||||||
export const isAuthorized = OAS3NullSelector
|
export const isAuthorized = OAS3NullSelector
|
||||||
export const getConfigs = OAS3NullSelector
|
export const getConfigs = OAS3NullSelector
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { OrderedMap } from "immutable"
|
|||||||
const RequestBody = ({
|
const RequestBody = ({
|
||||||
requestBody,
|
requestBody,
|
||||||
getComponent,
|
getComponent,
|
||||||
|
getConfigs,
|
||||||
specSelectors,
|
specSelectors,
|
||||||
contentType,
|
contentType,
|
||||||
isExecute,
|
isExecute,
|
||||||
@@ -27,6 +28,7 @@ const RequestBody = ({
|
|||||||
}
|
}
|
||||||
<ModelExample
|
<ModelExample
|
||||||
getComponent={ getComponent }
|
getComponent={ getComponent }
|
||||||
|
getConfigs={ getConfigs }
|
||||||
specSelectors={ specSelectors }
|
specSelectors={ specSelectors }
|
||||||
expandDepth={1}
|
expandDepth={1}
|
||||||
isExecute={isExecute}
|
isExecute={isExecute}
|
||||||
@@ -46,6 +48,7 @@ const RequestBody = ({
|
|||||||
RequestBody.propTypes = {
|
RequestBody.propTypes = {
|
||||||
requestBody: ImPropTypes.orderedMap.isRequired,
|
requestBody: ImPropTypes.orderedMap.isRequired,
|
||||||
getComponent: PropTypes.func.isRequired,
|
getComponent: PropTypes.func.isRequired,
|
||||||
|
getConfigs: PropTypes.func.isRequired,
|
||||||
specSelectors: PropTypes.object.isRequired,
|
specSelectors: PropTypes.object.isRequired,
|
||||||
contentType: PropTypes.string.isRequired,
|
contentType: PropTypes.string.isRequired,
|
||||||
isExecute: PropTypes.bool.isRequired,
|
isExecute: PropTypes.bool.isRequired,
|
||||||
|
|||||||
Reference in New Issue
Block a user