Commit Graph

4693 Commits

Author SHA1 Message Date
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
Ihnat Klimchuk
2f8bfd03f8 feat (auth): support for flow type authorization_code in oauth2-redirect.html (#6750) 2021-01-12 20:02:04 -08:00
Mahtis Michel
59b42bb38f fix(sample-gen): should return xml literal example (#6822) 2021-01-12 19:01:44 -08:00
Mahtis Michel
25433c4864 fix(spec-selector): isMediaTypeSchemaPropertiesEqual should handle case where literal media-types are equal. (#6820)
* fix(spec-selector): isMediaTypeSchemaPropertiesEqual case same

should return true in case of comparing same media types.

* test(spec-selector): isMediaTypeSchemaPropertiesEqual tests
2021-01-12 18:31:51 -08:00
Mahtis Michel
35cb92502a fix(sample-gen): should render additionalProperties in example (#6821)
* fix(sample-gen): should render additionalProperties in example

* test(sample-gen): should return additional property from example
for object and array schemas
2021-01-12 17:55:23 -08:00
dependabot[bot]
99f93a54b7 chore(deps-dev): bump jsdom from 15.2.1 to 16.4.0 (#6807)
Bumps [jsdom](https://github.com/jsdom/jsdom) from 15.2.1 to 16.4.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/15.2.1...16.4.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-12 15:32:22 -08:00
dependabot[bot]
e9ced85c52 chore(deps-dev): bump webpack from 4.45.0 to 4.46.0 2021-01-12 00:19:18 -05:00
dependabot[bot]
feccdcc16a chore(deps-dev): bump chromedriver from 87.0.4 to 87.0.5 2021-01-11 00:51:21 -05:00
dependabot[bot]
0d7a8081f5 chore(deps): bump dompurify from 2.2.3 to 2.2.6 2021-01-11 00:48:22 -05:00
dependabot[bot]
d506edcab4 chore(deps-dev): bump webpack from 4.44.2 to 4.45.0 2021-01-11 00:34:31 -05:00
dependabot[bot]
b756685e45 chore(deps-dev): bump babel-plugin-module-resolver from 4.0.0 to 4.1.0 2021-01-11 00:31:12 -05:00
dependabot[bot]
ca874437c5 chore(deps): bump memoizee from 0.4.14 to 0.4.15 2021-01-11 00:25:53 -05:00
dependabot[bot]
570d7b7e07 chore(deps-dev): bump postcss from 8.2.3 to 8.2.4 2021-01-11 00:19:53 -05:00
dependabot[bot]
ab7cefd5f1 chore(deps-dev): bump postcss from 8.2.2 to 8.2.3 2021-01-08 02:29:15 -05:00
dependabot[bot]
03b28c42aa chore(deps-dev): bump webpack-stats-plugin from 1.0.2 to 1.0.3 2021-01-08 00:56:19 -05:00
dependabot[bot]
90f6aff70d chore(deps-dev): bump husky from 4.3.6 to 4.3.7 2021-01-08 00:51:54 -05:00
dependabot[bot]
b8f1c0c35a chore(deps): bump lodash from 4.17.19 to 4.17.20 2021-01-08 00:43:09 -05:00
dependabot[bot]
789ad6acf7 chore(deps-dev): bump open from 7.3.0 to 7.3.1 2021-01-08 00:37:22 -05:00
dependabot[bot]
4e40cf8509 chore(deps): bump react-copy-to-clipboard from 5.0.1 to 5.0.2 2021-01-08 00:29:18 -05:00
dependabot[bot]
f161340dc8 chore(deps): bump ieee754 from 1.1.13 to 1.2.1 2021-01-08 00:24:44 -05:00
dependabot[bot]
22de36e9a9 chore(deps-dev): bump eslint-plugin-react from 7.21.5 to 7.22.0 2021-01-08 00:22:44 -05:00
swagger-bot
aab0511e07 chore(release): cut the v3.39.0 release 2021-01-07 21:16:03 +00:00
dependabot[bot]
be3ed0945b chore(deps-dev): bump mocha from 7.2.0 to 8.2.1 (#6781)
Bumps [mocha](https://github.com/mochajs/mocha) from 7.2.0 to 8.2.1.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v7.2.0...v8.2.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-07 12:40:32 -08:00
Mahtis Michel
2bf39e0ad5 feat(ux): Disabled Execute button while request is in progress (#6776)
Avoid sending multiple request while old is in progress

Co-authored-by: Tim Lai <timothy.lai@gmail.com>
2021-01-07 11:41:55 -08:00
Mahtis Michel
0f541a1ab0 fix(sample-gen): first oneOf or anyOf should be combined with schema (#6775)
* fix(sample-gen): oneOf and anyOf should be merge into schema

when there was oneOf or anyOf defined it just used the first schema of it to generate the samples.
Now, the first oneOf or anyOf is combined with the schema to generate samples.

* test(sample-gen): oneOf and anyOf should be combined with schema
2021-01-07 11:26:34 -08:00
dependabot[bot]
2564625f3d chore(deps-dev): bump webpack-dev-server from 3.11.0 to 3.11.1 2021-01-07 00:40:28 -05:00
dependabot[bot]
bc46206981 chore(deps): bump @babel/runtime-corejs3 from 7.11.2 to 7.12.5 2021-01-07 00:32:19 -05:00
dependabot[bot]
6e301bdc88 chore(deps-dev): bump postcss from 8.2.1 to 8.2.2 2021-01-07 00:27:09 -05:00
dependabot[bot]
54149f9b2a chore(deps-dev): bump @babel/preset-env from 7.12.10 to 7.12.11 2021-01-07 00:24:34 -05:00
dependabot[bot]
ed874eff52 chore(deps-dev): bump react-test-renderer from 15.6.2 to 15.7.0 2021-01-07 00:19:30 -05:00
dependabot[bot]
3142aa7c3a chore(deps-dev): bump url-loader from 2.3.0 to 4.1.1 (#6709)
Bumps [url-loader](https://github.com/webpack-contrib/url-loader) from 2.3.0 to 4.1.1.
- [Release notes](https://github.com/webpack-contrib/url-loader/releases)
- [Changelog](https://github.com/webpack-contrib/url-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/url-loader/compare/v2.3.0...v4.1.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-06 18:07:41 -08:00