Commit Graph

2287 Commits

Author SHA1 Message Date
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
b6b0d2879a fix(json-schema-2020-12-samples): apply string constraints sensibly (#9796)
Refs #9739
2024-04-09 15:58:37 +02:00
Vladimír Gorej
7db9c9879b feat(json-schema-2020-12-sample): introduce option API (#9795)
Refs #9739
2024-04-09 14:50:47 +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
Vladimír Gorej
ac0d2a3cc8 refactor(syntax-highlighting): use component wrapping for syntax highlighting activation (#9784) 2024-04-06 00:16:00 +02:00
Vladimír Gorej
7260005bd8 feat: consolidate syntax highlighting code into standalone plugin (#9783) 2024-04-05 21:12:25 +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
6a493fb4f3 feat(plugins): expose JSON Schema merging mechanism from samples plugins (#9766)
Refs #9765
2024-03-29 12:56:20 +01:00
Oliwia Rogala
c002e59791 fix(json-schema-2020-12-samples): fix constraints for integer example values (#9749)
Refs #9740
2024-03-26 14:55:25 +01:00
Vladimír Gorej
8561f3c189 fix(request-snipppets): fix issues in escaping Powershell (#9692) 2024-03-13 13:39:18 +01:00
Vladimír Gorej
b1d7e4b397 fix(oas3): escape regular expression before using it (#9691) 2024-03-13 13:06:42 +01:00
Oliwia Rogala
99bf8fcc19 fix(spec): validation errors formatting (#9687)
Co-authored-by: Enrico Bottacin <enrico.bottacin@gmail.com>
Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
2024-03-13 12:09:52 +01:00
Will McNamara
6dbcd45e66 feat(style): add max-height for curl example (#9179) 2024-03-07 14:24:46 +01:00
Vladimír Gorej
a9731c547c refactor(components): rewrite ModelExample into functional component (#9668) 2024-03-06 16:32:54 +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
7300e6c04e fix(oas3): attempt to render schemas not resolved by swagger-client (#9629)
Refs #9513
2024-02-23 11:30:28 +01:00
Pavel Rosický
2a2956f55f fix(style): incorrect usage of justify-content property in Authorize button wrapper (#9421)
Co-authored-by: Oliwia Rogala <oliwia.rogala@smartbear.com>
2024-02-15 14:40:56 +01:00
Oliwia Rogala
16fef96338 fix: associate HTML labels with inputs (#9599)
Refs #8879

Co-authored-by: morsko1 <morssko1@gmail.com>
2024-02-15 11:17:11 +01:00
Julien
0ce05095af fix(spec): ignore empty string for multi-value parameter (#9511)
Refs #9266 
Refs #5176 

Co-authored-by: Julien Bourges <julien.bourges@actility.com>
Co-authored-by: Oliwia Rogala <oliwia.rogala@smartbear.com>
2024-02-15 09:38:48 +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
6bb76c2c28 fix(spec): set multi-value parameters as an immutable list (#9567)
Refs #9566
2024-02-12 12:12:38 +01:00
Vladimír Gorej
3a86443322 fix: add missing HTML id attributes (#9563)
Refs #9523

Co-authored-by: Reges Mendes <reges.mendes@gmail.com>
2024-02-09 10:53:21 +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
56c087cec5 fix(oas31): make selectors always return expected shapes (#9519)
Refs #9517
2024-01-26 13:14:52 +01:00
Vladimír Gorej
252c81ae8e refactor: replace defaultProps with JavaScript default parameters (#9464)
This change in specific to React components and
React@18 version.

Refs #9456
2024-01-08 10:45:09 +01:00
Joon Kyoung
d5a51463ff fix: use JavaScript default parameters instead React's defaultProps (#9453) 2024-01-04 14:32:21 +01:00
Vladimír Gorej
98b53090cb feat: add support for React@18 in backward compatible way (#9435)
Any React version matching this semver is supported: >= 16.8 < 19

Refs #8126
Refs #8414
2023-12-20 16:50:22 +01:00
Vladimír Gorej
4bf7831707 chore(deps): bump reselect from 4.1.8 to 5.0.1 (#9430)
Closes #9419
2023-12-20 11:31:42 +01:00
Vladimír Gorej
748dec193d fix(styles): fix regressions in operations on smaller screens (#9425)
Refs #8940
2023-12-14 10:57:44 +01:00
Artur
9a7c4c0593 fix(auth): allow password managers to pre-fill input fields (#9390)
HTML disallows having multiple IDs with the same value.

In reality this is for 1Password's feature where you can create
custom fields named like input IDs and 1Password fill pre-fill that.
2023-11-22 09:48:09 +01:00
Ochuko Pedro
8f93354c81 fix(styling): ensure authorize button stays on the right (#9387)
Refs #8940 
Refs #9325
2023-11-20 13:00:21 +01:00
Bas Schoenmaeckers
fb65508eb4 feat(samples): add base64url support for contentEncoding keyword (#9246)
This change is JSON Schema 2020-12 specific.
2023-11-13 16:01:27 +01:00
Pierre PLR
20c2c74746 fix(oas31): use system.fn as source of truth for Model wrapper (#9153)
Refs #8577
2023-11-13 14:11:08 +01:00
Ochuko Pedro
e34d8fb874 fix(styling): make Operations more responsive on smaller screens (#9325)
Along with the operations, Topbar and Authorization button
has been made more responsive as well.

Refs #8940
2023-11-10 18:17:05 +01:00
Michał Korczak
f803fa3410 fix(response-body): show download button both for non-empty Blob and string responses (#9343)
Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>

Refs #9298
2023-11-09 14:48:16 +01:00
Maggie Wachs
2a4afd94f6 fix(a11y): remove redundant aria-label from accordion button (#9361) 2023-11-09 13:54:10 +01:00
Patryk Rosiak
aa9cf56327 feat: add wrapper for OpenAPI 3.1.0 version label (#9267)
Refs #9167 
Refs #9264
2023-09-29 14:09:01 +02:00
Patryk Rosiak
1addcfebb5 feat: add wrapper for version labels (#9264)
Refs #9167
2023-09-28 19:21:03 +02:00
Krzysztof Kowalczyk
c2c6ba60b1 feat(operation-summary): move JumpToPath component after collapse/expand icons (#9230)
The goal if to have collapse/expand icon always 
in the extreme right possition.

Refs #9111
2023-09-22 12:07:24 +02:00
Vladimír Gorej
0144dad03d fix(callbacks): display all defined callbacks (#9223)
Refs #9222
2023-09-18 09:26:12 +02:00
Vladimír Gorej
9ca41e0b40 fix(resolve): make retrievalURI absolute before resolution (#9214)
Refs #9208
2023-09-14 13:33:31 +02:00
Vladimír Gorej
b7f533174a fix(security): allow more strict CSP for SVG assets (#9209)
Refs #7540
2023-09-14 12:34:13 +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
f151685f64 refactor: use document.baseURI for URI Reference resolution (#9205) 2023-09-13 11:13:39 +02:00
Vladimír Gorej
d89726a24b feat(deps): integrate swagger-client@3.22.0 (#9202) 2023-09-13 10:43:27 +02:00
Jelle Aret
2c04153614 feat(a11y): provide additional context for authorization and logout button (#8999)
Refs #8998

Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
2023-09-07 10:00:03 +02:00
Vladimír Gorej
113996f627 feat(json-schema): expose API that generates examples from JSON Schema (#9190)
This allows to use the samples API in a static way
without fully instantiating SwaggerUI.

Refs #9188
2023-09-05 14:13:53 +02:00
Vladimír Gorej
edd1153723 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
2023-09-05 09:56:51 +02:00