feat: expose plugins and presets on SwaggerUI global symbol (#9189)

Part of this commit is also:
- complete plugins consolidation
- complete presets consolidation
- build system consolidation

Refs #9188
This commit is contained in:
Vladimír Gorej
2023-09-05 09:56:51 +02:00
committed by GitHub
parent 8137a8b337
commit edd1153723
118 changed files with 28137 additions and 853 deletions

View File

@@ -1,6 +1,6 @@
import { fromJS } from "immutable"
import reducer from "corePlugins/oas3/reducers"
import reducer from "core/plugins/oas3/reducers"
describe("oas3 plugin - reducer", function () {
describe("SET_REQUEST_BODY_VALIDATE_ERROR", () => {
@@ -518,13 +518,13 @@ describe("oas3 plugin - reducer", function () {
}
}
})
const result = clearRequestBodyValue(state, {
payload: {
pathMethod: ["/pet", "post"],
}
})
const expectedResult = {
requestData: {
"/pet": {
@@ -535,7 +535,7 @@ describe("oas3 plugin - reducer", function () {
}
}
}
expect(result.toJS()).toEqual(expectedResult)
})
})
@@ -556,13 +556,13 @@ describe("oas3 plugin - reducer", function () {
}
}
})
const result = clearRequestBodyValue(state, {
payload: {
pathMethod: ["/pet", "post"],
}
})
const expectedResult = {
requestData: {
"/pet": {
@@ -573,7 +573,7 @@ describe("oas3 plugin - reducer", function () {
}
}
}
expect(result.toJS()).toEqual(expectedResult)
})
})