Commit Graph

2319 Commits

Author SHA1 Message Date
Oliwia Rogala
04bbeaa68c fix(config): define missing default options and their types (#9949)
Refs #9945

---

Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
2024-05-21 12:56:49 +02: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
Daksh
450bb99109 fix(json-schema-5): allow collapsing for primitive models (#9639)
Refs #9595
2024-05-08 08:37:12 +02:00
nightingale
1367a8fbdf fix(components): render parameter extensions in the description column (#9883)
Co-authored-by: Oliwia Rogala <oliwia.rogala@smartbear.com>
2024-05-07 14:21:04 +02:00
kyoungmin kim
0dd9afadd2 fix: render null values included in enum (#9683)
Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
2024-05-07 14:09:39 +02:00
Vladimír Gorej
877470b522 fix(system): allow wrapping components both from presets and plugins (#9919)
Refs #7232
2024-05-07 11:54:12 +02:00
Vladimír Gorej
33555e9e4f refactor(config): fix naming of system options (#9917) 2024-05-07 09:24:16 +02:00
Vladimir Gorej
5fa60ce073 fix(config): perform configuration synchronously 2024-05-06 17:34:55 +02:00
Vladimir Gorej
fe6c1b88c3 refactor(config): use conventional naming 2024-05-06 17:34:55 +02:00
Oliwia Rogala
333e5e38d6 fix(config): remove system config source (#9875)
Refs #5148
2024-04-25 16:02:15 +02:00
Oliwia Rogala
f7373a0bc1 fix(json-schema-2020-12-samples): skip anyOf and oneOf while merging schemas (#9853)
Refs #9198
2024-04-23 15:27:22 +02:00
Oliwia Rogala
6fccf9e219 fix(utils): fix validation for required values without specified type (#9863)
Refs #8007
2024-04-23 10:09:32 +02:00
Vladimír Gorej
17d50a6ab5 feat(config): expose config and make it overridable (#9862) 2024-04-22 14:37:04 +02:00
Vladimír Gorej
c8f892d49e refactor(config): export config options typecasing mechanism (#9854) 2024-04-20 08:07:32 +02:00
careworry
d57866973e docs: fix typos in code comments (#9841)
Signed-off-by: careworry <worrycare@outlook.com>
2024-04-20 08:01:39 +02:00
Vladimír Gorej
12d6685255 style(core): apply prettier formatting (#9848) 2024-04-19 08:28:52 +02:00
Oliwia Rogala
60670d1bbd fix(config): add options defined during runtime (#9845)
Refs #9844
2024-04-18 16:40:04 +02:00
Oliwia Rogala
bcd7388a2d fix(config): sync SwaggerUI default options with swagger-ui-react (#9843)
Refs #9838
2024-04-18 16:09:39 +02:00
Oliwia Rogala
dc9650b80b fix(config): address getting configUrl from options (#9840)
Refs #9819
2024-04-18 14:35:50 +02:00
Oliwia Rogala
7378821669 fix(config): cast configuration values into proper types (#9829)
Refs #9808
2024-04-18 11:04:05 +02:00
Vladimír Gorej
c2b63ab4d7 style(request-snippets): change name of active tab class (#9839)
Refs https://github.com/swagger-api/swagger-ui/pull/9826
2024-04-18 10:55:09 +02:00
Oliwia Rogala
2720d76365 fix(config): fix precedence for system options (#9831)
Refs #9818
2024-04-17 15:42:02 +02:00
Vladimír Gorej
06e6dfac21 feat(request-snippets): use active class modifier for active snippet (#9826) 2024-04-16 12:22:11 +02:00
Oliwia Rogala
692311105b fix(config): handle query config options (#9824)
Refs #9807

---------

Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
2024-04-16 09:22:28 +02:00
Vladimír Gorej
463cd35d31 feat: expose build info via new versions plugin (#9820) 2024-04-15 11:55:20 +02:00
Oliwia Rogala
68eb346a23 refactor: consolidate all config related code into config module (#9811)
Refs #9806

Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
2024-04-15 11:29:11 +02:00
Oliwia Rogala
52c4b9512f fix(utils): make URL search params parsing and serialization WHATWG URL compliant (#9809)
Refs #9804
2024-04-11 19:06:17 +02:00
Twan Kamp
6160b10d74 refactor(json-schema-2020-12-samples): design formatAPI consistent with mediatypeAPI and encoderAPI (#9799)
Refs #9739
2024-04-11 08:47:48 +02:00
Oliwia Rogala
0f395c2adf fix(spec): format validation errors for nested parameters (#9775)
Refs #9774
2024-04-10 13:11:31 +02:00
Vladimír Gorej
3b72ee18bc refactor: consolidate all JSON Schema 5 rendering code into json-schema-5 plugin (#9798) 2024-04-10 12:11:51 +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
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