-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xml gen should follow json gen behavior #6555
Conversation
pass down to memorize and actual logic
…rrideExample > example > default)
Thanks for the information, will trace this down. |
Yes, I can add the tests accordingly! |
Have added test for #4943 and #6540. Test for the fn.js should be covered with the original |
@tim-lai I think this is ready for a review! |
@mathis-m Merged! Thanks for all the effort to this PR! |
Jenkins Git plugin tagging with v3.36.2 * tag 'v3.36.2' of github.com:swagger-api/swagger-ui: (337 commits) chore(release): cut the v3.36.2 release fix: duplicate labels in Servers UI (swagger-api#6568) fix: externalDocs url for tags when using swagger v2.0 (swagger-api#6579) fix(schema example): xml gen should follow json gen behavior (swagger-api#6555) fix(cypress): oas3-request-body-required flakineess (swagger-api#6583) housekeeping(dev-deps): webpack-stats-plugin@1.0.2 (swagger-api#6576) chore: enforce commit message conventions (swagger-api#6577) chore(release): cut the v3.36.1 release housekeeping(deps): swagger-client@3.12.0 (swagger-api#6575) housekeeping(dev-deps): nightwatch@1.5.1 fix(cypress): oas3-multiple-media-types flakiness (swagger-api#6571) housekeeping(dev-deps): file-loader@6.2.0 housekeeping(dev-deps): mini-css-extract-plugin@1.2.1 housekeeping(dev-deps): cypress@5.5.0 ci(GA): add lint-errors step (swagger-api#6564) ci(GA): add test:artifact job (swagger-api#6562) ci(GA): add release job step (swagger-api#6558) ci(GA): use github actions as CI (swagger-api#6557) housekeeping(dev-deps): mini-css-extract-plugin@1.2.0 housekeeping(dev-deps): @jest/globals@26.6.1 ...
Description
Merged the JSON and XML gen fns to be generic. And so the logic used is the same. This makes sense since generation does not differ to much.
Introduced exampleOverride so components do not need to care about overriding the
schema.example
.Move plain js convert to fn.
Motivation and Context
This is part of #6470
Fixes #4943
Fixes #6540
How Has This Been Tested?
Unit tests have been modified.
Possibility to add unit tests for new override behavior.
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests