committed by
Vladimír Gorej
parent
1ce9ce0cda
commit
2ce9d08af7
@@ -175,7 +175,7 @@ const RequestBody = ({
|
||||
}
|
||||
if (type === "object" || useInitialValue) {
|
||||
// TODO: what about example or examples from requestBody could be passed as exampleOverride
|
||||
initialValue = getSampleSchema(prop, false, {
|
||||
initialValue = fn.getSampleSchema(prop, false, {
|
||||
includeWriteOnly: true
|
||||
})
|
||||
}
|
||||
@@ -242,6 +242,7 @@ const RequestBody = ({
|
||||
requestBody,
|
||||
contentType,
|
||||
activeExamplesKey,
|
||||
fn,
|
||||
)
|
||||
let language = null
|
||||
let testValueForJson = getKnownSyntaxHighlighterLanguage(sampleRequestBody)
|
||||
|
||||
@@ -103,7 +103,7 @@ export const selectDefaultRequestBodyValue =
|
||||
}
|
||||
|
||||
export const hasUserEditedBody = onlyOAS3((state, path, method) => (system) => {
|
||||
const { oas3Selectors, specSelectors } = system
|
||||
const { oas3Selectors, specSelectors, fn } = system
|
||||
|
||||
let userHasEditedBody = false
|
||||
const currentMediaType = oas3Selectors.requestContentType(path, method)
|
||||
@@ -147,7 +147,8 @@ export const hasUserEditedBody = onlyOAS3((state, path, method) => (system) => {
|
||||
method,
|
||||
"requestBody",
|
||||
"requestBody"
|
||||
)
|
||||
),
|
||||
fn
|
||||
)
|
||||
userHasEditedBody =
|
||||
!!userEditedRequestBody &&
|
||||
|
||||
Reference in New Issue
Block a user