Commit Graph

18 Commits

Author SHA1 Message Date
Rohit Sharma
a78278e836 fix(utils): fix error messages for range validation of number parameters (#10344) 2025-04-03 11:50:11 +02:00
Vladimír Gorej
80d56c9518 feat: apply cumulative update to address various issues (#10324) 2025-02-27 11:12:42 +01:00
Oliwia Rogala
6fccf9e219 fix(utils): fix validation for required values without specified type (#9863)
Refs #8007
2024-04-23 10:09:32 +02:00
Oliwia Rogala
52c4b9512f fix(utils): make URL search params parsing and serialization WHATWG URL compliant (#9809)
Refs #9804
2024-04-11 19:06:17 +02:00
Vladimir Gorej
4cc8ecb790 Merge branch 'master' into next 2023-06-12 18:39:44 +02:00
Vladimír Gorej
75a8f34452 chore(deps): bump @babel/runtime-corejs3 from 7.21.5 to 7.22.5 (#8918)
Closes #8904
2023-06-12 15:39:21 +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
Vladimír Gorej
4db964378b test(core): align test with dependency update (#8512) 2023-03-24 09:40:27 +01:00
Vladimír Gorej
cab47a36c8 test(core): fix unit test assertion (#8456)
Refs #8403
2023-03-08 13:55:39 +01:00
Vladimir Gorej
fb7e98a431 fix(servers): prevent UI crash when chaning Server with variables
Closes #7525
2021-11-04 16:27:27 +01:00
Mahtis Michel
4103e0f919 fix: array constraint validation only if value was provided (#7112) 2021-03-30 12:33:56 -07: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
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
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
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
ad630cc3e0 fix: sample schema should stringify string values for content-type: text/json (#6431)
* reverts #6412 which stringified string value if content-type: text/plain 
* enable stringify string values matching `/json/` and allowList of `shouldStringifyTypes` ("string")
2020-09-29 13:40:47 -07:00
Mahtis Michel
821ba887a6 fix: string samples should also be json stringified. (#6412)
fixes #6120
2020-09-21 12:16:26 -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