Commit Graph

5510 Commits

Author SHA1 Message Date
Tim Lai
2fc78c7e3f ci(release): update ga workflow to release swagger-ui-react (#8387) 2023-02-14 15:24:57 -08:00
semantic-release-bot
a22acf0e08 chore(release): cut the 4.16.0-alpha.1 release
# [4.16.0-alpha.1](https://github.com/swagger-api/swagger-ui/compare/v4.15.5...v4.16.0-alpha.1) (2023-02-14)

### Features

* OpenAPI 3.1 support ([#8367](https://github.com/swagger-api/swagger-ui/issues/8367)) ([4557b24](4557b2497b))
2023-02-14 23:13:26 +00:00
Tim Lai
c9c7177e2a ci(release): merge workflow updates into 'next' branch (#8386) 2023-02-14 15:09:20 -08:00
Tim Lai
a79f493145 BREAKING CHANGE: trigger major semver release from 'next' branch (#8381) 2023-02-13 11:29:55 -08: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
dependabot[bot]
f3c6a2552d chore(deps): bump nginx from 1.23.2-alpine to 1.23.3-alpine (#8327) 2022-12-19 11:11:22 +00:00
Vladimír Gorej
f8f674004a ci(dependabot-merge): replace non-functioning merge action (#8306)
Refs https://github.com/ahmadnassri/action-dependabot-auto-merge/issues/166
2022-11-24 11:38:01 +01:00
dependabot[bot]
ab36a82b9f chore(deps): bump loader-utils from 1.4.1 to 1.4.2 (#8300) 2022-11-18 00:36:51 +00:00
swagger-bot
118ea1329c chore(release): cut the v4.15.5 release 2022-11-09 06:53:40 +00:00
Tim Lai
c858a266f4 chore: manually bump version from failed release (#8290) 2022-11-08 22:02:32 -08:00
Tim Lai
34b429744e fix(deps): move patch-package to prod deps for ci (#8288) 2022-11-08 19:34:30 -08:00
Tim Lai
6cbee7e80e revert(patch-package): temporarily remove postinstall hook (#8287) 2022-11-08 17:10:21 -08:00
dependabot[bot]
56b671d7d7 chore(deps): bump loader-utils from 1.4.0 to 1.4.1 (#8286) 2022-11-08 23:58:43 +00:00
swagger-bot
aea7886ed1 chore(release): cut the v4.15.3 release 2022-11-08 23:52:46 +00: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
dependabot[bot]
0b8de2c179 chore(deps-dev): bump @babel/preset-env from 7.16.8 to 7.20.2 (#8279) 2022-11-07 19:14:21 +00:00
Florian Dreier
073c31a36a fix: remove IE7 star property hack in tachyons-sass via patch-package (#8266)
Fixes #8243

Co-authored-by: Tim Lai <timothy.lai@smartbear.com>
2022-11-07 11:06:02 -08:00
Andreas Born
7b0ac1ae28 fix: show client secret input for PKCE auth code flow (#8268)
* fix: show client secret input for PKCE auth code flow

PKCE and Client Secrets are allowed to coexist and neither is designed
as a replacement for the other. [1] It is wrong to assume that a client
secret must not or cannot be used in combination with PKCE. Quite the
opposite, when possible both PKCE and client secret should be used. [2]
So the premises of #6290 and #8146 are not correct.

Admittedly, for users of the PKCE mechanism WITHOUT a client secret it
might be a minor nuisance to see the client secret input in the Swagger
UI. But they can just leave it empty. On the other hand, for users of
the PKCE mechanism WITH a client secret it is more than just a nuisance
if the client secret input is not shown. The Swagger UI becomes unusable
for them (unless they've set a default value for the client secret,
which will be used hiddenly without being shown to the user).

Therefore the right course of action for now would be to revert #7438 to
show the client secret input always regardless of PKCE. In the future a
new flag could be introduced to hide the client secret input regardless
of the PKCE flag.

[1] https://oauth.net/2/pkce/
[2] https://www.oauth.com/oauth2-servers/pkce/

* docs: explain why client secret input is shown despite PKCE
2022-11-04 15:46:38 -07:00
dependabot[bot]
cced547006 chore(deps): bump react-syntax-highlighter from 15.4.5 to 15.5.0 (#8261) 2022-10-27 11:22:15 +00:00
dependabot[bot]
f346cfaeb9 chore(deps-dev): bump @babel/plugin-proposal-object-rest-spread (#8259) 2022-10-26 19:54:26 +00:00
swagger-bot
6ce623329e chore(release): cut the v4.15.2 release 2022-10-26 19:47:11 +00:00
Guillaume Tassery
b010b558f1 fix(ui): handle missing schema reference case for discriminant definitions (#8257)
Co-authored-by: Tim Lai <timothy.lai@gmail.com>
2022-10-26 12:14:28 -07:00
dependabot[bot]
0e8a0407fa chore(deps-dev): bump @babel/eslint-parser from 7.17.0 to 7.19.1 (#8258) 2022-10-26 11:38:30 +00:00
swagger-bot
a44840ca0d chore(release): cut the v4.15.1 release 2022-10-25 19:30:08 +00:00
ishuen
2a967e9b25 fix(parameters): allowedValues for enum and boolean types (#8231)
* Change parameter with empty map

* Change allowValues data type

Co-authored-by: Tim Lai <timothy.lai@smartbear.com>
2022-10-25 11:01:07 -07:00
dependabot[bot]
99ef4b9945 chore(deps-dev): bump express from 4.17.1 to 4.18.2 (#8253) 2022-10-25 11:31:39 +00:00
dependabot[bot]
8acb5d583f chore(deps-dev): bump terser-webpack-plugin from 5.3.1 to 5.3.6 (#8252) 2022-10-25 11:23:58 +00:00
Jack Kavanagh
5ffe93c3cd chore(deps): bump react-copy-to-clipboard and react-inspector for React 18 peer deps support (#8244)
Co-authored-by: Tim Lai <timothy.lai@smartbear.com>
2022-10-24 14:05:31 -07:00
kai-morich
94575666c3 fix(oauth2): only display scopes relevant for current endpoint (#8229)
* 'available authorization' popup: only show oauth2 scopes relevant for current endpoint (issue #8219)

* unit tests for oauth2 scope filter

Co-authored-by: Kai Morich <kai.morich@sap.com>
Co-authored-by: Tim Lai <timothy.lai@smartbear.com>
2022-10-24 13:37:49 -07:00
dependabot[bot]
95463759c6 chore(deps): bump nginx from 1.23.1-alpine to 1.23.2-alpine (#8247) 2022-10-24 11:15:49 +00:00
swagger-bot
2005a0c996 chore(release): cut the v4.15.0 release 2022-10-20 20:57:58 +00:00
Hunmin Park
a43ae1c804 fix(ui): change input line-height to prevent clipped characters (#8216)
Co-authored-by: Tim Lai <timothy.lai@smartbear.com>
2022-10-19 13:55:24 -07:00
Ahmed Yarub Hani Al Nuaimi
f5bb456ffa feat(example): set discriminated properties to mapped value (#8213) 2022-10-17 16:22:43 -07:00
Pompette
7936ec9fea fix(ui): alignment of markdown description in parameter/response columns (#8214) 2022-10-14 10:43:10 -07:00
Dan Wallis
130a1be133 feat(try-it-out): display validation error messages (#8212) 2022-10-14 09:36:13 -07:00
Anton Yakutovich
0a7b3d6b2f ci(nodejs.yml): refactor with single cache step (#8221) 2022-10-11 13:04:50 +02:00
swagger-bot
278dc05c88 chore(release): cut the v4.14.3 release 2022-10-11 09:13:18 +00:00
Vladimír Gorej
3524fdb2ef chore(security): use minimum 16.17.1-r0 in docker image (#8222) 2022-10-11 10:42:00 +02:00
swagger-bot
775d307d56 chore(release): cut the v4.14.2 release 2022-09-29 17:30:08 +00: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
dependabot[bot]
5558bc81f6 chore(deps): bump vm2 from 3.9.9 to 3.9.11 (#8204) 2022-09-28 13:47:36 +00:00
dependabot[bot]
30098e8530 chore(deps-dev): bump @babel/plugin-proposal-nullish-coalescing-operator (#8196) 2022-09-23 11:28:28 +00:00
swagger-bot
0b4426ab6c chore(release): cut the v4.14.1 release 2022-09-22 16:50:30 +00:00
dependabot[bot]
6afa9a02e1 chore(deps-dev): bump prettier from 2.5.1 to 2.7.1 (#8193) 2022-09-22 11:33:37 +00:00
An Tran
82e3290de4 docs(samples-webpack): updated config and dependencies (#8184) 2022-09-21 16:06:52 -07:00
twjasa
6c03465257 fix: expand model if depth <= defaultModelExpandDepth (#8186) 2022-09-21 15:57:37 -07:00
dependabot[bot]
5eeb98b8d6 chore(deps-dev): bump autoprefixer from 10.4.4 to 10.4.12 (#8190) 2022-09-21 22:45:32 +00:00
Tim Lai
0121b18ddf chore(deps-dev): bump sass-loader from 9.0.3 to 12.6.0 (#8191) 2022-09-21 15:38:33 -07:00
dependabot[bot]
64d270d18c chore(deps-dev): bump postcss-loader from 6.2.1 to 7.0.1 (#8113)
Bumps [postcss-loader](https://github.com/webpack-contrib/postcss-loader) from 6.2.1 to 7.0.1.
- [Release notes](https://github.com/webpack-contrib/postcss-loader/releases)
- [Changelog](https://github.com/webpack-contrib/postcss-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/postcss-loader/compare/v6.2.1...v7.0.1)

---
updated-dependencies:
- dependency-name: postcss-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-21 14:18:00 -07:00
Tim Lai
2759da364b chore(deps-dev): bump release-it from 15.3.0 to 15.4.2 (#8189) 2022-09-21 14:06:31 -07:00