Commit Graph

2278 Commits

Author SHA1 Message Date
Tarcisio
6a4656f669 fix(ui): align "send empty" checkbox (#9061)
Closes #9060
2023-07-27 14:00:16 +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
Damian Polewski
f3ea2a251d feat: add Icons plugin
* Change existing icons to React wrapper components

* Add `icons` plugin to expose Icon components to plugin system

* Create components that re-export Lock and Unlock components so they can be changed separately in Authorise top button and Authorise operation summary button

* Add new Lock and Unlock icons to `auth` plugin

---------

Co-authored-by: Vladimír Gorej <vladimir.gorej@smartbear.com>
2023-07-20 14:51:17 +02:00
Vladimír Gorej
94fac4b3a1 fix(json-schema-2020-12): add rendering support for type='integer' (#9031)
Refs #9013
2023-07-17 15:10:21 +02:00
Vladimír Gorej
70d7986ad0 fix(json-schema-2020-12): fix rendering of exclusiveMin|Max keywords (#9030)
Refs #9013
2023-07-17 14:52:48 +02:00
Vladimír Gorej
667e55e368 perf(spec): increase performance of operation expansion (#8937)
Refs #8606
2023-06-16 20:39:04 +02:00
Vladimír Gorej
a6c27457e5 feat(spec): add new specJS selector (#8936)
This selector always returns the same JavaScript
object unless it really changes.

Before this change it customary to call
specJson().toJS() which always resulted
in transformation operation and new JavaScript
object.

Refs #8606
2023-06-16 13:37:10 +02:00
Vladimir Gorej
4cc8ecb790 Merge branch 'master' into next 2023-06-12 18:39:44 +02:00
Junrou Nishida
07a08cd2eb fix(request-body): fix immutable prop types validation (#8307) 2023-06-12 15:03:49 +02:00
Vladimír Gorej
b593c50c7c feat(samples): add support for merging type keyword (#8916)
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.

Refs #8577
2023-06-12 14:35:06 +02:00
Vladimír Gorej
12c7493018 fix(json-schema-2020-12): custom OAS 3.1 formats in type inferrence (#8912) 2023-06-11 19:55:19 +02:00
Vladimír Gorej
fd18aaa09c refactor(samples): do the general code cleanup (#8911)
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.

Refs #8577
2023-06-11 19:27:59 +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
ce417d59d2 feat(samples): add support for inferring schema type (#8909)
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.

Refs #8577
2023-06-11 13:14:44 +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
d72b72c5c6 feat(samples): add support for custom formats, encoders and media types (#8905)
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.

Refs #8577
2023-06-09 15:34:39 +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
5cf9276b65 refactor(samples): extract number and string constrains applicators (#8900)
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.

Refs #8577
2023-06-08 18:53:25 +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
220150eb30 refactor(samples): type check object constraints acording to spec (#8898)
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.

Refs #8577
2023-06-08 14:48:16 +02:00
Vladimír Gorej
521a40adf0 refactor(samples): type check string constrains according to spec (#8897)
This change is specific to JSON Schema 2020-12
and OpenAPI 3.1.0.

Refs #8577
2023-06-08 14:34:24 +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
Vladimir Gorej
c529c9e0c3 refactor(samples): simplify string related constraints
Refs #8577
2023-06-07 12:13:24 +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
f30d89af1b fix(oas31): fix rendering of Schema Object inside Operation Object (#8887) 2023-06-06 15:09:06 +02:00
Vladimír Gorej
f2b0d4af41 refactor(samples): add better support for exclusive number ranges (#8886)
This change is specific ot  JSON Schema 2020-12
and OpenAPI 3.1.0.

Refs #8577
2023-06-06 15:02:15 +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
Vladimir Gorej
b017858fe1 refactor(oas31): use system.fn as source of truth for Model wrapper
Refs #8577
2023-06-01 14:09:02 +02:00
Vladimír Gorej
df9aadf971 feat(oas31): enable overrides for samples plugin (#8731)
These overrides are specific to OpenAPI 3.1.0
and JSON Schema 2020-12.

Refs #8577
2023-06-01 14:09:02 +02:00
Vladimir Gorej
2ce9d08af7 test: align tests with sample plugin changes
Refs #8577
2023-06-01 14:09:02 +02:00
Vladimír Gorej
1ce9ce0cda refactor: use samples plugin to generate schemas examples (#8728)
Refs #8577
2023-06-01 14:09:02 +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
ac3b69fb3c feat: introduce samples framework for JSON Schema 2020-12
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
4ad45f855d fix(oas31): avoid capitalizing first character of components.schemas (#8710)
Refs #8611
2023-05-24 15:43:08 +02:00
Vladimír Gorej
1931b45eb0 fix(json-schema-2020-12): fix predicate in hasKeyword function (#8692)
Refs #8686
2023-05-22 15:14:39 +02:00
Vladimír Gorej
58b460d1fc fix(oas3): fix deep linking for Callbacks (#8691)
Refs #8556
2023-05-22 14:55:06 +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
872e382c5f fix(oas31): fix deep linking for Webhooks and Callbacks (#8680)
Refs #8679
2023-05-16 14:57:00 +02:00
Vladimír Gorej
75b41e09ff feat(oas31): add support for includeReadOnly/WriteOnly options (#8675)
Refs #8513
2023-05-16 13:53:08 +02:00
Vladimír Gorej
67132cc726 fix(json-schema-2020-12): fix rendering of items keywords (#8674)
As JSON Schema 2020-12 can be represented as
a Boolean Schema, different keyword detection
needs to be used.

Refs #8513
2023-05-16 12:45:34 +02:00
Vladimír Gorej
2f0282d063 feat(oas31): render JSON Schema 2020-12 in Operations and Webhooks (#8673)
Includes Callback Objects as well.

Refs #8513
2023-05-16 10:39:00 +02:00
Vladimír Gorej
79e0c4e096 feat(oas31): prepare to render JSON Schema 2020-12 in Operations and Webhooks (#8670)
Refs #8513
2023-05-15 14:20:59 +02:00
Vladimír Gorej
bd406eeaaf fix(oas31): fix expansion margin in OpenAPI 3.1 base dialect keywords (#8664)
Refs #8513
2023-05-12 16:28:44 +02:00