Commit Graph

5173 Commits

Author SHA1 Message Date
Mahtis Michel
a2a561e943 feat: validate nullable (#6928) 2021-02-11 10:18:13 -08:00
Mahtis Michel
7ead9baa80 * fix(sample-gen): enum without type should be handled by sample-gen (#6912) 2021-02-11 09:58:28 -08:00
Mahtis Michel
fad81f8cb9 feat: use example gen for multiple example value retainer examples (#6920)
* fix: multiple examples with same value jumps to first example
2021-02-11 09:33:04 -08:00
dependabot[bot]
649be5d78b chore(deps-dev): bump postcss from 8.2.5 to 8.2.6 2021-02-11 00:23:04 -05:00
Chad Killingsworth
5e69d3c4f2 fix: support OAuth2 PKCE when using the OIDC authorization_code flow (#6914)
* Previous checks only supported the OAuth2 authorizationCode flow and missed the equivalent OIDC flow.
2021-02-10 09:52:35 -08:00
dependabot[bot]
710b9d16a3 chore(deps-dev): bump mini-css-extract-plugin from 1.3.4 to 1.3.6 2021-02-09 00:32:34 -05:00
dependabot[bot]
1df258993b chore(deps-dev): bump css-loader from 5.0.1 to 5.0.2 2021-02-09 00:25:04 -05:00
dependabot[bot]
b61c9f727d chore(deps-dev): bump postcss from 8.2.4 to 8.2.5 2021-02-08 00:37:20 -05:00
dependabot[bot]
7eb803af62 chore(deps-dev): bump lint-staged from 10.5.3 to 10.5.4 2021-02-08 00:34:58 -05:00
dependabot[bot]
51ae2c3762 chore(deps-dev): bump sass-loader from 7.1.0 to 7.3.1 2021-02-08 00:25:41 -05:00
dependabot[bot]
adfafc1f0d chore(deps-dev): bump @babel/plugin-transform-runtime from 7.12.13 to 7.12.15 2021-02-05 00:19:16 -05:00
swagger-bot
2a3afb8440 chore(release): cut the v3.42.0 release 2021-02-04 18:21:00 +00:00
Nicolas
13fea13397 fix(responseBody): json response highlighting (#6871)
Refs #6508 

* Add language prop to HighlightCode component

* Use language prop for JSON HighlightCode responses in response-body.jsx
2021-02-03 12:56:29 -08:00
Mahtis Michel
5c4dfc2da8 feat: enhance parameter validation (#6878)
* feat: support min/max items validation

* feat: validate array deep and unique items

* feat: validate object deep
2021-02-03 12:29:59 -08:00
Mahtis Michel
8ed6c34958 feat: sample-gen mulit and form media-type (#6874)
* application/x-www-form-urlencoded || **multipart/** initial value should rely on sample gen
2021-02-03 12:04:12 -08:00
dependabot[bot]
23323bbbff chore(deps-dev): bump @babel/plugin-proposal-optional-chaining from 7.12.7 to 7.12.13 2021-02-03 02:51:11 -05:00
dependabot[bot]
df3ae82ac0 chore(deps-dev): bump @babel/core from 7.12.10 to 7.12.13 2021-02-03 02:35:37 -05:00
dependabot[bot]
4d8737a100 chore(deps-dev): bump @babel/plugin-transform-runtime from 7.12.10 to 7.12.13 2021-02-03 02:31:40 -05:00
dependabot[bot]
160196210e chore(deps-dev): bump @babel/plugin-proposal-nullish-coalescing-operator from 7.12.1 to 7.12.13 2021-02-03 02:30:06 -05:00
dependabot[bot]
28b662dba7 chore(deps-dev): bump @babel/preset-react from 7.12.10 to 7.12.13 2021-02-03 02:28:05 -05:00
dependabot[bot]
faf8b5b8c1 chore(deps): bump @babel/runtime-corejs3 from 7.12.5 to 7.12.13 2021-02-03 00:48:55 -05:00
dependabot[bot]
8c317ebe6a chore(deps-dev): bump @babel/register from 7.12.10 to 7.12.13 2021-02-03 00:43:05 -05:00
dependabot[bot]
7fedf5ee87 chore(deps-dev): bump @babel/cli from 7.12.10 to 7.12.13 2021-02-03 00:31:10 -05:00
dependabot[bot]
82ee90f7f4 chore(deps-dev): bump @babel/preset-env from 7.12.11 to 7.12.13 2021-02-03 00:26:53 -05:00
dependabot[bot]
954f0564ab chore(deps-dev): bump @babel/plugin-proposal-class-properties from 7.12.1 to 7.12.13 2021-02-03 00:24:44 -05:00
dependabot[bot]
d2003ef326 chore(deps-dev): bump open from 7.3.1 to 7.4.0 2021-02-02 00:21:11 -05:00
swagger-bot
4be20654c6 chore(release): cut the v3.41.1 release 2021-01-28 19:56:37 +00:00
Tim Lai
e538e26314 fix(swagger-ui-react): src filename extension to transpile (#6876) 2021-01-28 11:23:51 -08:00
swagger-bot
b737bec5f1 chore(release): cut the v3.41.0 release 2021-01-28 18:09:09 +00:00
Mahtis Michel
5b2ad68f50 fix(sample-gen): case yaml parsed example is number but string schema (#6872) 2021-01-28 09:04:15 -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
470e2fed9b feat(sample-gen): yaml sample generation (#6858)
* feat(sample-gen): yaml sample generation

if content / media type matches yaml or yml it will generate stringified sample like for json
in addition to that it will generate yaml out of the json sample

Signed-off-by: mathis-m <mathis.michel@outlook.de>

* test(unit-jest): getSampleSchema should handle yaml
2021-01-25 14:43:52 -08:00
Mahtis Michel
e877580d54 feat(ux): enhance media-type switching experience in RequestBodyEditor (#6837)
* feat(ux): enhance media-type switching experience in RequestBodyEditor

1. When canceling the try-out mode the request body will be reset to its initial state.
2. When the user switches the media-type in the try-out mode, the experience is as follows:
   - If the user did edit the request body the body wont be touched and only media type is updated. This is to ensure that user content is NEVER accidentally overwritten with a default value.
   - If the user did not edit the request body it is safe to be replaced by the default value of the target media-type.

Multiple example needed some care in order to allow the retain example value to function properly

* fix(test): workaround cypress issue that can't be reproduced manually

* test: added new feature to ensure enhanced user editing flow

Signed-off-by: mathis-m <mathis.michel@outlook.de>
2021-01-25 11:16:07 -08:00
Tim Lai
a5eb3dc0c3 fix(buildUrl): relative url is invalid URL (OAS3) or non-url (OAS2) (#6864)
* OAS3: relative url when no servers defined AND specUrl is invalid Url

* OAS2: specUrl is non-url string
2021-01-22 16:55:37 -08:00
Mahtis Michel
cdfb64f711 fix(webpack): assets should not be treaded as esModule (#6861) 2021-01-22 10:20:25 -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
dependabot[bot]
617a7ceefd chore(deps-dev): bump postcss-loader from 4.1.0 to 4.2.0 2021-01-22 00:21:34 -05:00
dependabot[bot]
ab0cdbf9d9 chore(deps-dev): bump chromedriver from 87.0.5 to 87.0.7 2021-01-20 02:16:12 -05:00
dependabot[bot]
f6737179c8 chore(deps): bump swagger-client from 3.12.1 to 3.12.2 2021-01-20 00:21:16 -05:00
dependabot[bot]
518f7bb09c chore(deps-dev): bump inspectpack from 4.5.2 to 4.6.1 2021-01-20 00:17:09 -05:00
dependabot[bot]
c89c3738bd chore(deps-dev): bump husky from 4.3.7 to 4.3.8 2021-01-18 00:26:30 -05:00
swagger-bot
8264f72af3 chore(release): cut the v3.40.0 release 2021-01-14 20:20:17 +00:00
Mahtis Michel
ddaee4ec42 feat: group / sort parameters by location (#6745) 2021-01-14 11:39:01 -08:00
Mahtis Michel
a2f7917661 fix(sample-gen): should return json literal example (#6827)
* fix(sample-gen): should return json literal example

* test(sample-gen): should return json literal example
2021-01-14 10:59:35 -08:00
Mahtis Michel
7087210adb fix(style): code should should wrap line (#6831)
* fix(style): code should should wrap line

this time in correct place

* revert(#6764): reverted wrongly placed css
2021-01-14 10:11:03 -08:00
dependabot[bot]
9568c901ca chore(deps-dev): bump mini-css-extract-plugin from 1.3.3 to 1.3.4 2021-01-14 00:25:32 -05:00
dependabot[bot]
387d8cb9b3 chore(deps-dev): bump webpack-dev-server from 3.11.1 to 3.11.2 2021-01-14 00:22:30 -05:00
Amir Bitaraf Haghighi
a7ba55ad03 feat(docker): add docker support for persist authorization variable (#6832) 2021-01-13 13:23:44 -08:00
Mahtis Michel
d80cc40dc4 feat(doc): added introduction (#6806)
taken from https://swagger.io/tools/swagger-ui/
2021-01-13 07:08:26 -08:00
dependabot[bot]
e161cb496a chore(deps): bump react-copy-to-clipboard from 5.0.2 to 5.0.3 2021-01-13 00:22:21 -05:00