Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Scott Beddall cfd51d250a
Remove mockjs from dependencies (#1024)
* remove mockerJS usage mockForPattern
* add a specification which includes a 'pattern' into the examplegenerator test case set
2024-01-29 14:42:21 -08:00
Scott Beddall ceb45d81e7
Resolve Regressions on on behavior of `anyOf` due to updates on `refWithReadOnly` (#1019)
* rename xMsReadOnlyRef to xmsReadonlyRef, resolving the 9 or so regressions caused by #996 and #1004

---------

Co-authored-by: semick-dev <sbeddall@gmail.com>
2023-11-15 11:03:56 -08:00
Ke Yu acc22c7027
Fix P1 issues (#891)
* add title and operationId to example

* generate subscriptionId in guid format

* update snapshot

* get title from x-ms-example first

* update examples

* add rule name to title

* update change log

* update rule suffix of title
2022-11-02 11:46:26 +08:00
Matthew Christopher ccdcdfcf3c
ARM ID validation (#851)
* ARM ID validation

* Unit tests

* Restrict arm-id validation to examples and arm tra

* Refactor missing_resource_id rule

Ignore error when response body is empty in example validation;
Add isArmCall flag in semantic validation.

* Updated snapshot of example generation test

Test failed because the location is set as required property in resource model so response body only has location property and doesn't have id property.

* Updated snapshot for example validation test

* Delete examplegen snapshot

* re-add example gen snapshot

* add swagger changes

* add example files used by test

* added examples used by test

* Added all exmaples generated by auto gen

* update index value in model validation

Co-authored-by: raychen <raychen@microsoft.com>
2022-09-21 09:29:24 +08:00
Ke Yu 95f76f2c76
Support api-version validation (#854)
* support api-version validation

* fix modelValidatorTest

* fix example api-version

* update snapshot

* fix build error

* use continue instead of break

* update snapshot

* fill exampleJsonPath and examplePosition

* update snapshot

Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-09-20 17:44:59 +08:00
Ke Yu bf07412d3c
Support data validation and generation in byte format (#834)
* Enable byte format validation and generation

* update snapshot

* update liveValidatorTest snapshot

* update validateExamplesRegression snapshot

* update validation about base64 format

* update snapshot

* Cancel config setting about atob()

Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-07-20 16:59:18 +08:00
Ke Yu 501faac110
Fix issues about: multipart/form-data, duration, exampleJsonPath, LRO validation and generate (#812)
* fix bug about multipart/form-data

* support duration format when generating examples

* bump oav version

* multipart form data should only have one file type parameter is required

* Report real exampleJsonPath when additional parameter includes '.'

* update logic about multipart/form-data

* still validate LRO operation when response doesn't have schema

* update exampleGeneratorTests snapshot

* update regression tests snapshot

* change the domain of LRO header

* update snapshot name

* skip error MULTIPLE_BODY_PARAMETERS when consumes includes multipart/form-data

* update test example fileName

Co-authored-by: Ray Chen <raychen@microsoft.com>
2022-06-24 17:15:32 +08:00
Ligengxin 6a1a91ad46
Fix 'generate-examples' command failed to generate correct format for ‘uri’ format parameter (#704)
* Fix 'generate-examples' command failed to generate correct format for ‘uri’ format parameter

* add test case

* more test case

* add missing file

* update

* add test case

* update

Co-authored-by: Gengxin Li <v-wenbli@microsoft.com>
2021-11-15 13:22:49 +08:00
JianyeXi 33a8222912
Example generation improvement (#550)
* add example cache

* improve merge array cache algorithm

* fix comments

* fix snapshot

Co-authored-by: jianye xi <jianyxi@microsoft.com>
2021-01-07 10:52:02 +08:00
raychen 8815d179d1 Release 2.0.0 version 2020-11-24 11:07:36 +08:00