Vladimir Gorej
fdef4ead7a
fix(build-security): do not expose hostname to build framents ( #7491 )
...
Refs #7446
2021-09-10 13:29:42 +03:00
Vladimir Gorej
3248428e96
feat(js-yaml): update our main YAML parser to v4.1.0
...
Closes #6804
2021-08-09 16:30:40 +02:00
Tim Lai
de3d063ca3
fix(sample-gen): parameter array missing items fallback ( #7376 )
...
* fixes #7375
2021-06-24 16:25:54 -07:00
Andreas Grub
13c110a6fe
feat(oas3): Show file upload for schema binary format ( #7325 )
...
* fix(ux): display actual content type instead of hard-coded application/octet-stream
* feat(ux): show file upload when schema has "format: binary", fixes #5636
* feat(ux): show file upload when schema has "format: base64"
According to
https://github.com/swagger-api/swagger-ui/pull/7325#issuecomment-861684260
the uploaded file should be converted to base64 automatically.
* feat(ux): add cypress tests for displaying an upload button
2021-06-22 15:33:57 -07:00
Tim Lai
14be45db3c
fix(try-it-out): button and inner text spacing ( #7357 )
2021-06-21 10:34:46 -07:00
Tim Lai
87ded996fa
fix(sample-gen): oas3 form-data object should generate example ( #7355 )
2021-06-18 16:49:50 -07:00
Vasilev Pyotr
3a0f72f59a
fix(ui): parameter placeholder should only display name ( #7123 )
...
* remove `description` from parameter placeholder
2021-06-09 11:46:25 -07:00
Vladimir Gorej
96cdf00adb
fix(system): allow wrapping selectors in chain ( #7304 )
...
Refs #7157
2021-05-26 11:54:58 -07:00
Damien
516e666f1c
feat(wrapComponents): new chain configuration option ( #7236 )
...
This commit provides a backward compatible mechanism to chain wrap
an individual component multiple times
`Chain` mode: allow chaining of plugins on a given component
`Legacy` mode: last plugin to wrap a given component will supercede others
* chore: Add unit test for wrapComponent wrapping
* doc: Add documentation about the new pluginsOptions configuration
* doc: Add a sidenote on plugin-api page
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2021-05-20 15:41:11 -07:00
iron
9f62154d06
fix: download button width ( #7230 )
2021-05-12 10:22:11 -07:00
Giles Wells
72811bd827
feat: Accessibility improvements ( #7224 )
...
* feat: adds a11y for ContentType & Responses region
* feat: adds a11y to expandable/collapsible elements
* fix: add aria label to select element for content types
* fix: add aria label prop to contentType component
* Change optag to h3 for better tag hierarchy
Co-authored-by: ediiotero <eddie.otero@oddball.io >
Co-authored-by: Mike Lumetta <mike.lumetta@adhocteam.us >
Co-authored-by: Alexander Valencia <alex.valencia@adhocteam.us >
2021-05-12 09:40:31 -07:00
Tim Lai
38c6e127bf
chore(deps): bump serialize-error from 2.1.0 to 8.1.0 ( #7223 )
...
* apply named imports, per v5.x breaking changes
2021-04-29 13:49:36 -07:00
Mahtis Michel
53829f18a6
fix: required properties ( #7206 )
...
* fix: required properties
schema required properties should not be treated like required: true.
this lead to objects that requires properties being treated as required itself
* test: try-it-out-schema-required-override-allowed
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2021-04-29 12:31:22 -07:00
Michael Zangl
5906dfae02
fix(authorization): include oauth endpoint description ( #7195 )
2021-04-20 16:39:11 -07:00
Tim Lai
92f1507408
fix(syntaxHighlighter): request and response examples for json cases ( #7199 )
...
* OAS 2 request and response examples for json cases
* OAS 3 request and response examples for json cases
* OAS2 and OAS3 tests
* jsonParse utils for syntax highlighting
2021-04-20 11:39:05 -07:00
Tim Lai
2373a83fe2
feat: remove node_native option from request snippets plugin ( #7181 )
...
* snippet generator support intended for different shell options only
* will not maintain snippet generator for various languages
2021-04-14 10:55:31 -07:00
ben-smartbear
7fc2780bac
fix: update snippet generator map to support React 16 ( #7154 )
2021-04-14 09:52:52 -07:00
Tim Lai
f5b84e59ce
feat: markdown sanitization of form tag ( #7146 )
2021-03-31 11:03:57 -07:00
Giles Wells
4abbc62b87
fix: add aria label to select element for content types ( #7133 )
...
Co-authored-by: ediiotero <eddie.otero@oddball.io >
Co-authored-by: Mike Lumetta <mike.lumetta@adhocteam.us >
2021-03-31 08:25:24 -07:00
Mahtis Michel
032bd71e0a
feat(sample-gen): infer implicit type and validation constraint types ( #7117 )
...
* this closes some dead ends of sample generation where no sample can be generated
2021-03-30 14:28:51 -07:00
axel584
75865f31ec
feat: download of text/csv now uses .csv extension ( #7141 )
2021-03-30 13:06:00 -07:00
Mahtis Michel
4103e0f919
fix: array constraint validation only if value was provided ( #7112 )
2021-03-30 12:33:56 -07:00
Mahtis Michel
9a2b646d23
fix: response examples fallback ( #7065 )
2021-03-18 14:37:02 -07:00
Tim Lai
4d264ae17f
chore(lint): cumulative lint fixes prep for eslint@7 ( #7078 )
2021-03-16 10:11:35 -07:00
Tim Lai
21c29469bc
refactor(auth): rename auth flow constants to be more descriptive ( #7061 )
2021-03-10 15:53:14 -08:00
Mahtis Michel
84358aeb78
refactor: operations component ( #7044 )
2021-03-10 15:14:41 -08:00
Mahtis Michel
072362244a
fix(ui): prevent example select from overflowing ( #7060 )
2021-03-10 14:07:32 -08:00
Mahtis Michel
3ead825287
feat: sample gen should incorporate schema validation constraint ( #7043 )
...
* feat(sample-gen): handle minProperties, maxProperties
* fix(sample-gen): lift required
* feat(sample-gen): handle minimum, maximum (+ exclusive)
* feat(sample-gen): handle minLength, maxLength
2021-03-10 13:19:45 -08:00
Mahtis Michel
902241cf7e
fix(sample-gen): xml attr with media-type example value ( #7045 )
2021-03-10 12:44:54 -08:00
Mahtis Michel
219d886265
fix(auth): url change should flush auth ( #7046 )
2021-03-10 11:35:45 -08:00
Mahtis Michel
f9e54a26bf
fix(sample-gen): allOf, oneOf lifting should consider properties and items ( #7041 )
2021-03-10 11:18:54 -08:00
Mahtis Michel
8405fa0101
feat: request snippets plugin ( #6910 )
2021-03-10 11:02:34 -08:00
Mahtis Michel
15b8c0c929
fix: preserve multipart file part position in requestData ( #7008 )
2021-03-10 10:45:54 -08:00
Dan Dumont
f23a9d6924
fix(auth): support pkce when using basic auth header ( #7038 )
...
* support pkce when using basic auth header
* test(auth): useBasicAuthenticationWithAccessCodeGrant + usePkceWithAuthorizationCodeGrant
2021-03-10 10:30:20 -08:00
Mahtis Michel
2016c184b6
fix: json schema array items ( #7007 )
...
* feat(ux): json schema array now states type to add
this is to enhance nested array usability wise
2021-03-03 13:44:57 -08:00
Mahtis Michel
68bd61a682
fix: multipart enum initial value not set ( #7004 )
2021-03-03 12:49:56 -08:00
Mahtis Michel
d32bd1ab7c
fix: optional empty validation ( #7003 )
...
internal logic does send null to validation in case of empty parameter input.
* refactor: early return to clarify cases
2021-03-03 12:19:43 -08:00
Tim Lai
b7d3d1ce4a
fix(info): use externalDocsUrl check to render Link ( #6997 )
...
* fixes screen reader accessibility issue
2021-02-24 15:56:24 -08:00
Mahtis Michel
4db2edcad2
feat: verbose Failed to fetch error ( #6938 )
...
* feat: verbose Failed to fetch error
* refactor: disable console.error in src/core/plugins/spec/actions.js
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2021-02-24 14:32:25 -08:00
Mahtis Michel
0e6dc0487c
feat(models): collapsed schema content should be clickable ( #6942 )
2021-02-16 16:02:55 -08:00
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
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
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
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