feat: apply cumulative update to address various issues (#10324)
This commit is contained in:
@@ -15,6 +15,11 @@ import makeGetSampleSchema from "core/plugins/json-schema-5-samples/fn/get-sampl
|
||||
import makeGetJsonSampleSchema from "core/plugins/json-schema-5-samples/fn/get-json-sample-schema"
|
||||
import makeGetYamlSampleSchema from "core/plugins/json-schema-5-samples/fn/get-yaml-sample-schema"
|
||||
import makeGetXmlSampleSchema from "core/plugins/json-schema-5-samples/fn/get-xml-sample-schema"
|
||||
import { foldType } from "core/plugins/json-schema-2020-12-samples/fn/index"
|
||||
import {
|
||||
makeGetType,
|
||||
isBooleanJSONSchema,
|
||||
} from "core/plugins/json-schema-2020-12/fn.js"
|
||||
|
||||
describe("bug #4557: default parameter values", function () {
|
||||
it("should apply a Swagger 2.0 default value", function () {
|
||||
@@ -47,6 +52,10 @@ describe("bug #4557: default parameter values", function () {
|
||||
getYamlSampleSchema: makeGetYamlSampleSchema(getSystem),
|
||||
getXmlSampleSchema: makeGetXmlSampleSchema(getSystem),
|
||||
getSampleSchema: makeGetSampleSchema(getSystem),
|
||||
jsonSchema202012: {
|
||||
foldType,
|
||||
getType: makeGetType(() => ({ isBooleanJSONSchema })),
|
||||
},
|
||||
},
|
||||
})
|
||||
const props = {
|
||||
@@ -105,6 +114,10 @@ describe("bug #4557: default parameter values", function () {
|
||||
getXmlSampleSchema: makeGetXmlSampleSchema(getSystem),
|
||||
getSampleSchema: makeGetSampleSchema(getSystem),
|
||||
mergeJsonSchema,
|
||||
jsonSchema202012: {
|
||||
foldType,
|
||||
getType: makeGetType(() => ({ isBooleanJSONSchema })),
|
||||
},
|
||||
},
|
||||
})
|
||||
const props = {
|
||||
|
||||
Reference in New Issue
Block a user