f464ba2d31
Update swagger-ui
Node.js CI / build (push) Failing after 2s
Node.js CI / e2e-tests (+(a11y|security|bugs)/**/*cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/!(o|d|m)*.cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/+(o|d)*.cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/m*.cy.js) (push) Failing after 2s
CodeQL / Analyze (javascript) (push) Failing after 2m49s
Security scan for docker image / build (push) Failing after 54s
2025-06-24 13:40:26 +09:00
Oliwia Rogala
26967308e9
feat(oas31): display file upload input when contentMediaType or contentEncoding is present ( #10412 )
...
Refs #9278
2025-04-11 15:38:35 +02:00
Oliwia Rogala
c29e7126c9
fix: align OpenAPI 3.x.y file uploads with specification ( #10409 )
...
Refs #9278
2025-04-11 13:43:44 +02:00
Oliwia Rogala
d2fff7c746
fix(json-schema-2020-12): avoid accessing properties of null schemas ( #10397 )
2025-04-02 08:16:08 +02:00
Vladimír Gorej
80d56c9518
feat: apply cumulative update to address various issues ( #10324 )
2025-02-27 11:12:42 +01:00
Oliwia Rogala
b5c84f44c7
fix(oas31): fix re-rendering of the Webhooks component ( #9938 )
...
Refs #9937
2024-05-15 13:52:41 +02:00
Oliwia Rogala
9037acf508
fix(components): add support for oneOf/anyOf JSON Schema keywords in parameter-row rendering ( #9934 )
...
Refs #7912
2024-05-14 11:54:44 +02:00
Oliwia Rogala
94f2d8298a
fix(components): fix rendering for empty examples in responses ( #9926 )
...
Refs #9499
2024-05-10 13:42:33 +02:00
Oliwia Rogala
3bea389715
fix(oas3): compensate for JSON Schemas left unresolved by swagger-client ( #9794 )
...
Refs #9790
2024-04-10 08:41:49 +02:00
Vladimír Gorej
111e420c98
fix(oas31): allow override names of top level schemas ( #9787 )
...
Refs #9713
Co-authored-by: Oliwia Rogala <oliwia.rogala@smartbear.com >
2024-04-08 13:43:38 +02:00
Oliwia Rogala
ed983eb260
fix(oas3): add support for oneOf/anyOf JSON Schema keywords in request-body rendering ( #9767 )
...
Refs #9763
2024-03-29 14:08:48 +01:00
Oliwia Rogala
8086d97e76
fix(oas3): fix getting initial values for request body in OpenAPI 3.x ( #9762 )
...
Refs #9745
2024-03-29 13:36:16 +01:00
Oliwia Rogala
32e7ce43d6
fix: avoid rendering empty response schemas ( #9667 )
...
Refs #9666
Co-authored-by: Pierre Paysant-Le Roux <ppaysant@gmail.com >
2024-03-06 15:10:29 +01:00
Vladimír Gorej
e2be707d7c
fix(oas31): render responses with empty content field ( #9664 )
...
Refs #9199
2024-03-06 14:20:45 +01:00
Oliwia Rogala
6154396e06
fix: fix regression in definition resolution ( #9658 )
...
Refs https://github.com/swagger-api/swagger-js/issues/3385
Refs #9645
2024-03-01 13:50:04 +01:00
Oliwia Rogala
7300e6c04e
fix(oas3): attempt to render schemas not resolved by swagger-client ( #9629 )
...
Refs #9513
2024-02-23 11:30:28 +01:00
Oliwia Rogala
0aed3bc831
fix(json-schema-2020-12): expand deeply all Schema Objects and complex keywords ( #9581 )
...
Refs #9508
Supersedes #9510
Co-authored-by: Julien Bourges <julien.bourges@actility.com >
2024-02-14 10:16:34 +01:00
Oliwia Rogala
a88bed5130
fix(spec): render response body for non-200 responses ( #9555 )
...
Refs #9556
2024-02-07 16:05:00 +01:00
Vladimír Gorej
0144dad03d
fix(callbacks): display all defined callbacks ( #9223 )
...
Refs #9222
2023-09-18 09:26:12 +02:00
Patryk Rosiak
89cdd7b022
feat: add mutualTLS auth option ( #9193 )
...
Refs #8020
Co-authored-by: Vladimír Gorej <vladimir.gorej@smartbear.com >
2023-09-13 15:32:35 +02:00
Vladimír Gorej
8b274414ab
refactor(oas31): concentrate OpenAPI 3.1.0 code to separate plugin ( #8475 )
...
Refs #8474
2023-03-16 12:05:19 +01:00
Tim Lai
4557b2497b
feat: OpenAPI 3.1 support ( #8367 )
...
- New top-level field - `webhooks`. This allows describing out-of-band webhooks that are available as part of the API.
- New top-level field - `jsonSchemaDialect`. This allows defining of a default `$schema` value for Schema Objects
- The Info Object has a new `summary` field.
- The License Object now has a new `identifier` field for SPDX licenses. This `identifier` field is mutually exclusive with the `url` field. Either can be used in OpenAPI 3.1 definitions.
- Components Object now has a new entry `pathItems`, to allow for reusable Path Item Objects to be defined within a valid OpenAPI document.
- `License` and `Contact` components are now exported and available via `getComponent`
- New version predicates and selectors for `isOpenAPI30` and `isOpenAPI31`. This avoids needing to change the usage of `isOAS3` selector.
- New OAS3 components: `Webhooks`
- New OAS3 wrapped components: `Info`, `License`
2023-02-03 14:06:56 -08:00
Mathias Spanhove
ffe24d5a83
fix(try-it-out): reset of oas3 requestBody should use default values ( #8265 )
...
Co-authored-by: Mathias Spanhove <mathias.spanhove@katoennatie.com >
2022-11-08 15:23:19 -08:00
Tim Lai
4b5d4bda96
fix(xml): render example with oneOf/anyOf ( #8206 )
...
* test(e2e): render xml example with oneOf/anyOf
2022-09-28 14:33:58 -07:00
Chad Knight
94c70e21cd
fix(plugin): allow Topbar plugin to read url param on load ( #8168 )
...
* fix(plugin): allow Topbar plugin to read url param on load
* fix(plugin): add cypress tests for topbar w/o query config
2022-09-21 13:24:00 -07:00
Fabian Schneider
6ae2693d47
feat: Render external docs links and descriptions ( #7559 )
...
Co-authored-by: Tim Lai <timothy.lai@smartbear.com >
2022-08-17 10:42:36 -07:00
Andreas Deininger
9891d97201
docs: fix typos and update https references ( #8154 )
...
Co-authored-by: Tim Lai <timothy.lai@smartbear.com >
2022-08-12 10:14:27 -07:00
Tim Lai
41f84aad05
fix: set yaml parser load option to JSON_SCHEMA ( #8023 )
2022-05-12 15:51:38 -07:00
Maciej Matyjas
abeb168696
fix(ui): avoid empty div when there are no externalDocs ( #7997 )
...
* fix(ui): avoid empty div when there are no externalDocs
* test(ui): existence of externalDocs div when present/absent from spec
2022-05-12 15:45:14 -07:00
Tim Lai
7b06ac1b7c
test(oath): for authorization bearer ( #7936 )
2022-03-23 14:29:02 -07:00
Anne Stellingwerf
a89c90ec77
fix(oauth2): generate default oauth2RedirectUrl based on page location and path ( #7476 )
...
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2022-02-01 16:25:52 -08:00
Tim Lai
a0e9923dd5
fix(serverVariables): refresh state on definition change ( #7821 )
...
* fix(serverVariables): refresh state on definition change
* test(serverVariables): urls with server variables assertions
2022-02-01 15:57:33 -08:00
Christian Egli
c6d8d779d0
feat: do not ask for client secret when using auth code with PKCE ( #7438 )
...
Co-authored-by: Ignacio Lozano <nacholozano@gmail.com >
Co-authored-by: Vladimir Gorej <vladimir.gorej@gmail.com >
Refs #6290
2022-01-26 10:56:09 +01:00
Vladimir Gorej
01a3e55960
fix(security): disable reading config params from URL search params ( #7697 )
...
Reading configuration parameters from URL search params
is by default no longer enabled. To re-enable it, set queryConfigEnabled
configuration parameter to true.
Functionally, this is a breaking change, but given we're just providing
a security vulnerability patch we're considering this a PATCH version bump
only.
Refs #4872
Refs https://github.com/swagger-api/swagger-ui/security/advisories/GHSA-qrmm-w75w-3wpx
2021-12-09 17:28:17 +01:00
Tim Lai
de3d063ca3
fix(sample-gen): parameter array missing items fallback ( #7376 )
...
* fixes #7375
2021-06-24 16:25:54 -07:00
Andreas Grub
13c110a6fe
feat(oas3): Show file upload for schema binary format ( #7325 )
...
* fix(ux): display actual content type instead of hard-coded application/octet-stream
* feat(ux): show file upload when schema has "format: binary", fixes #5636
* feat(ux): show file upload when schema has "format: base64"
According to
https://github.com/swagger-api/swagger-ui/pull/7325#issuecomment-861684260
the uploaded file should be converted to base64 automatically.
* feat(ux): add cypress tests for displaying an upload button
2021-06-22 15:33:57 -07:00
Tim Lai
87ded996fa
fix(sample-gen): oas3 form-data object should generate example ( #7355 )
2021-06-18 16:49:50 -07:00
Mahtis Michel
53829f18a6
fix: required properties ( #7206 )
...
* fix: required properties
schema required properties should not be treated like required: true.
this lead to objects that requires properties being treated as required itself
* test: try-it-out-schema-required-override-allowed
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2021-04-29 12:31:22 -07:00
Tim Lai
92f1507408
fix(syntaxHighlighter): request and response examples for json cases ( #7199 )
...
* OAS 2 request and response examples for json cases
* OAS 3 request and response examples for json cases
* OAS2 and OAS3 tests
* jsonParse utils for syntax highlighting
2021-04-20 11:39:05 -07:00
Mahtis Michel
68bd61a682
fix: multipart enum initial value not set ( #7004 )
2021-03-03 12:49:56 -08:00
Kyle Hoskins
265bdc07b7
feat: add tryItOutEnabled configuration ( #6865 )
...
* feat: add tryItOutEnabled configuration
allow users to set tryItOutEnabled: true to display
the "Try it out" section by default
tryItOutEnabled to take === "true" for the
query string value or === true if someone
implements query string type parsing in the query
2021-01-26 09:00:38 -08:00
Mahtis Michel
eddde95dc4
fix(ux): ensure that optional security schema is rendered without padlock. ( #6839 )
2021-01-22 10:03:38 -08:00
Mahtis Michel
ddaee4ec42
feat: group / sort parameters by location ( #6745 )
2021-01-14 11:39:01 -08:00
Mahtis Michel
68e9b1b439
Request Body examples should respect media-type ( #6739 )
...
* fix: request body.jsx should rely on the getSampleSchema utility
* test: add test to ensure xml request body
2021-01-04 10:23:23 -08:00
Tim Lai
24225e47bf
fix(xml): example generation if an array has an example ( #6634 )
...
ref: #6627
2020-11-18 15:19:52 -08:00
Mahtis Michel
288c89bdbb
fix(schema example): xml gen should follow json gen behavior ( #6555 )
...
* ref: #6470
* fixes : #6540
* fixes : #4943
* add example override option to json
* add example override option to xml
* added basic oneOf and anyOf support
* fix anyof|oneof
* only lift xml to items
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2020-11-03 10:58:59 -08:00
Shelby Sanders
6a4e52aadb
feat: support for showExtensions on Response objects ( #6535 )
2020-10-21 18:49:39 -07:00
Mahtis Michel
87ab4e9ac9
fix: response examples should respect media-type ( #6456 )
...
* response sample generation should take content type into consideration for stringify
2020-10-16 13:52:21 -07:00
Lucia Sarni
5065613130
fix(requestBody): hide read only properties ( #6490 )
2020-10-15 11:25:06 -07:00
Lucia Sarni
99fda81ae0
fix: missing commas in response header values #6183 ( #6515 )
2020-10-14 19:37:12 -07:00