Vladimír Gorej
edd1153723
feat: expose plugins and presets on SwaggerUI global symbol ( #9189 )
...
Part of this commit is also:
- complete plugins consolidation
- complete presets consolidation
- build system consolidation
Refs #9188
2023-09-05 09:56:51 +02:00
Adam Davis
d9375dbddf
fix(samples): fix handling of additionalProperties in JSON Schema 2020-12 ( #9023 )
...
This change is specific to JSON Schema 2020-12 and OpenAPI 3.1.0.
Refs #9022
2023-07-24 10:04:00 +02:00
Vladimír Gorej
7bf0dd921b
feat(samples): add support for proper schema merging ( #8910 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-11 15:35:05 +02:00
Vladimír Gorej
4b0b28518e
feat(examples): add support for examples keyword ( #8908 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-10 17:08:24 +02:00
Vladimír Gorej
6c622a87e7
feat(samples): add support for contentSchema keyword ( #8907 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-09 21:35:44 +02:00
Vladimír Gorej
1925622113
feat(samples): add support for contentMediaType keyword ( #8903 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-09 11:37:11 +02:00
Vladimír Gorej
04839642fb
feat(samples): add support for contentEncoding keyword ( #8899 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-08 18:35:03 +02:00
Vladimír Gorej
6549eff278
feat(samples): add support for contains, minContains, maxContains keywords ( #8896 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-08 14:06:22 +02:00
Vladimír Gorej
1114965782
feat(samples): add support for uniqueItems keyword ( #8893 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-07 14:21:04 +02:00
Vladimír Gorej
8a914926b3
feat(samples): add support for regex string format ( #8891 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-07 12:39:04 +02:00
Vladimír Gorej
68cfe46490
feat(samples): support multipleOf keyword ( #8890 )
...
This change is specific ti JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-07 11:48:10 +02:00
Vladimír Gorej
836659d8ac
feat(samples): support new semantics of exclusive number ranges ( #8885 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-06 13:49:02 +02:00
Vladimír Gorej
bdad2fe83d
feat(samples): add support for const keyword ( #8884 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-06 11:09:10 +02:00
Vladimír Gorej
3587696d73
feat(samples): add support for type keyword defined as list of types ( #8883 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-06 10:54:08 +02:00
Vladimír Gorej
28b12338f8
feat(samples): add support for new values of format keyword ( #8882 )
...
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.
Refs #8577
2023-06-05 15:12:50 +02:00
Vladimír Gorej
027f53c302
refactor(samples): move example generation code to samples plugin ( #8727 )
...
Refs #8577
2023-06-01 14:09:02 +02:00
Vladimir Gorej
b9c6c6f9d3
Merge branch 'master' into next
2023-05-24 15:51:42 +02:00
Vladimír Gorej
7ac9a8f070
feat(auth): persist cookie based apiKey in document.cookie ( #8689 )
...
Refs #8683
2023-05-22 14:46:30 +02:00
Vladimír Gorej
4810801f77
feat(oas31): add support for OpenAPI 3.1.0 in VersionPragmaFilter ( #8495 )
...
Refs #8492
2023-03-21 11:52:07 +01:00
Vladimír Gorej
8b274414ab
refactor(oas31): concentrate OpenAPI 3.1.0 code to separate plugin ( #8475 )
...
Refs #8474
2023-03-16 12:05:19 +01: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
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
Ahmed Yarub Hani Al Nuaimi
f5bb456ffa
feat(example): set discriminated properties to mapped value ( #8213 )
2022-10-17 16:22:43 -07:00
Maciej Kowalski
8f63462f9e
feat(oauth2): authActions.authPopup plugin accessible wrapper ( #7699 )
...
* enables win.open to be extensible by plugins
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2022-03-10 14:44:46 -08:00
dewijones92
3d79c24949
fix(examples): allow string created by regex pattern ( #7829 )
...
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2022-03-03 16:31:00 -08:00
Vladimir Gorej
8b1c4a7c1a
feat(error-handling): introduce unified and configurable error handling ( #7761 )
...
Refs #7778
2022-01-24 16:12:13 +01:00
Helen Kosova
f1aab53dd6
fix(sample-gen): generate the correct number of properties ( #7432 )
...
This commit fixes correct number of additionalProperties when minProperties is used.
2021-09-15 15:54:26 +03:00
Michael Zangl
5906dfae02
fix(authorization): include oauth endpoint description ( #7195 )
2021-04-20 16:39:11 -07: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
f9e54a26bf
fix(sample-gen): allOf, oneOf lifting should consider properties and items ( #7041 )
2021-03-10 11:18: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
7ead9baa80
* fix(sample-gen): enum without type should be handled by sample-gen ( #6912 )
2021-02-11 09:58:28 -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
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
Ilya Lipnitskiy
0807687f91
feat(auth): Add OIDC support ( #3517 ) ( #6549 )
...
spec/actions.js: Add OIDC metadata fetching
components/auth/oauth2: Add OIDC URL to the Authorization popup
2020-12-09 10:11:33 -08:00
Tim Lai
d2ef8f31b9
fix(examples): properly update memoized value in non-schema case ( #6641 )
2020-11-19 13:55:32 -08:00
Mahtis Michel
288c89bdbb
fix(schema example): xml gen should follow json gen behavior ( #6555 )
...
* ref: #6470
* fixes : #6540
* fixes : #4943
* add example override option to json
* add example override option to xml
* added basic oneOf and anyOf support
* fix anyof|oneof
* only lift xml to items
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2020-11-03 10:58:59 -08:00
Theo Markovic
537ad6d6bf
fix(jest): add stub for errActions to prevent unhandled promise rejections #6365 ( #6495 )
...
Co-authored-by: Theo Markovic <theodore.markovic@svenskaspel.se >
2020-10-14 17:07:49 -07:00
Tim Lai
3905fadfbe
fix(oas3): switching media types should update schema properties ( #6518 )
...
* When the media-type is changed, there is a new `onChangeMediaType` method to handle actions.
* If target schema properties key/value pairs does NOT equals current schema properties, clear the requestBodyValue, try-it-out request/response and validation params.
* If target schema properties key/value pairs DOES equals current schema properties, do not change or re-render schema properties
* oas3Selector `validateShallowRequired` now also validates required keys against target media-type
Fixes #6201 , #6250 , #6476
2020-10-14 16:24:07 -07:00
Amir Bitaraf Haghighi
96aecc8860
feat: Preserve authorization on browser refresh and close/reopen ( #5939 )
...
* Add default configuration `preserveAuthorization`
* Add localStorage to auth plugin
* Add persistAuthorization unit tests
* Refactor persistAuthorization to use wrapped actions
* Upgrade unit tests to be compatible with jest
* Add persistAuthorization documentation
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2020-09-11 14:05:37 -07:00
Tim Lai
1a27c0a8bd
feat: migrate unit tests to Jest ( #6353 )
...
* config(jest): updated setup
* config(jest): update testMatch to include jsx files
* config(jest): add transformIgnorePatterns
* config(jest): update ignore files that do not work in jest yet
* config: add test:unit-jest to test script
* fix(jest): lint with eslint-plugin-jest
* refactor(jest): move unit test directory
* refactor(mocha): restore mocha tests that fail in jest
* docs(jest): update helpful scripts with test:unit-jest
2020-09-01 10:41:01 -07:00