feat: apply cumulative update to address various issues (#10324)

This commit is contained in:
Vladimír Gorej
2025-02-27 11:12:42 +01:00
committed by GitHub
parent 621a7f0f76
commit 80d56c9518
298 changed files with 11066 additions and 11680 deletions

View File

@@ -48,6 +48,6 @@ describe("<OperationTag/>", function(){
const renderedLink = wrapper.find("Link")
expect(renderedLink.length).toEqual(1)
expect(renderedLink.props().href).toEqual("http://swagger.io")
expect(renderedLink.props().href).toEqual("http://swagger.io/")
})
})

View File

@@ -8,6 +8,7 @@ import {Collapse} from "core/components/layout-utils"
const components = {
Collapse,
DeepLink,
// eslint-disable-next-line react/prop-types
OperationContainer: ({ path, method }) => <span className="mocked-op" id={`${path}-${method}`} />,
OperationTag: "div",
}

View File

@@ -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("<ParameterRow/>", () => {
const createProps = ({ param, isOAS3 }) => {
@@ -33,6 +38,10 @@ describe("<ParameterRow/>", () => {
getXmlSampleSchema: makeGetXmlSampleSchema(getSystem),
getSampleSchema: makeGetSampleSchema(getSystem),
mergeJsonSchema,
jsonSchema202012: {
foldType,
getType: makeGetType(() => ({ isBooleanJSONSchema })),
},
},
oas3Selectors: { activeExamplesMember: () => {} },
getConfigs: () => ({}),
@@ -173,6 +182,10 @@ describe("bug #5573: zero default and example values", function () {
getYamlSampleSchema: makeGetYamlSampleSchema(getSystem),
getXmlSampleSchema: makeGetXmlSampleSchema(getSystem),
getSampleSchema: makeGetSampleSchema(getSystem),
jsonSchema202012: {
foldType,
getType: makeGetType(() => ({ isBooleanJSONSchema })),
},
},
getConfigs: () => {
return {}
@@ -225,6 +238,10 @@ describe("bug #5573: zero default and example values", function () {
getYamlSampleSchema: makeGetYamlSampleSchema(getSystem),
getXmlSampleSchema: makeGetXmlSampleSchema(getSystem),
getSampleSchema: makeGetSampleSchema(getSystem),
jsonSchema202012: {
foldType,
getType: makeGetType(() => ({ isBooleanJSONSchema })),
},
},
})
const props = {
@@ -279,6 +296,10 @@ describe("bug #5573: zero default and example values", function () {
getXmlSampleSchema: makeGetXmlSampleSchema(getSystem),
getSampleSchema: makeGetSampleSchema(getSystem),
mergeJsonSchema,
jsonSchema202012: {
foldType,
getType: makeGetType(() => ({ isBooleanJSONSchema })),
},
},
})
const props = {
@@ -333,6 +354,10 @@ describe("bug #5573: zero default and example values", function () {
getXmlSampleSchema: makeGetXmlSampleSchema(getSystem),
getSampleSchema: makeGetSampleSchema(getSystem),
mergeJsonSchema,
jsonSchema202012: {
foldType,
getType: makeGetType(() => ({ isBooleanJSONSchema })),
},
},
})
const props = {