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

22 Коммитов

Автор SHA1 Сообщение Дата
Ray Chen 40b6b7fa84
User/raychen/lro (#588)
* Add LRO validation rule

* Added two rules for LRO validation in live validator.

* Exclude error response from LRO validation.
2021-03-16 16:55:13 +08:00
raychen a74c3577da Updated test snapshot of regression test. 2020-11-25 16:17:09 +08:00
raychen 8815d179d1 Release 2.0.0 version 2020-11-24 11:07:36 +08:00
Ray Chen fb06a7fcb0
Update regression test snapshot. (#535) 2020-09-07 15:46:16 +08:00
Renhe Li f12bb2528c
Fix the additional path item problem for error path (#527)
* Fix the additional path item problem for error path

* Update snapshot file

* Support writeonly property

* Apply the change for write_only property

* Update the version of OAV

Co-authored-by: FAREAST\renhel <renhel@microsoft.com>
2020-08-18 16:28:07 +08:00
Ray Chen 6825fd1ca6
Update test snapshot. (#512) 2020-05-26 14:57:05 +08:00
Ligengxin 5a020d1145
check out error code of snap files (#508)
* check out error code of snap files

Co-authored-by: liwenbin <liwenbin@apexsoft.com.cn>
2020-04-24 13:14:30 +08:00
JianyeXi 3ddb780aa9
fix model validation failure when path parameter value containing sep… (#502)
* fix model validation failure when path parameter value containing sepecial charaters

* handle useSchemePrefix property in x-ms-parameterized-host

* update

* handle default useSchemePrefix

* fix snapshot

Co-authored-by: Jianye Xi <jianyxi@microsoft.com>
2020-04-10 17:08:13 +08:00
Ray Chen a2d2f5edbd
Upgrade yasway version. (#500)
* Upgrade yasway version.

Include the regression fix on customvalidator.
2020-03-30 11:01:11 +08:00
Ray Chen 1dcb4322d0
Upgrade yasway to include the fix. (#498)
* Upgrade yasway to include the fix.

The fix on global parameter validation in request.
Added unit test.

* Update regression snapshot.
2020-03-27 19:15:43 +08:00
Ray Chen 1deda4b25d
Enable request parameter suppression. (#493)
* Enable request parameter suppression.

Added suppression as member property in base class;
Request only includes parameter, enable parameter name match suppression.
2020-03-23 14:57:41 +08:00
JianyeXi 0aeec688e1
fix issue caused by host path parameter value with url (#482)
* fix  issue caused by host path parameter value with url

* update test snapshot

* update comment

* update test snapshot

* bump up version

* fix typo

* Workaround azuredevops isssue.

There's an issue with YAML pipeline triggers which doesn't trigger
pipeline when it's not explicitly specified in yaml file.

* fix snapshot

Co-authored-by: Ray Chen <raychen@microsoft.com>
2020-03-16 10:46:08 +08:00
nickzhums d5deab2023 Resource provider and API-version should be case-insensitive for live validation (#461)
* Convert API version to be lowercase during validation and add uunit tests

* Bump oav and yasway version

* Fix tsc formatting issue

* Update outdated unit test

* Update test snapshot

* Update changelog

* Lowercase the query string as well
2019-11-21 15:26:44 +08:00
nickzhums e1e7f7000a
[S1007882] Check if x-ms-mutability property is write-only in the response validation (#459)
* Check if x-ms-mutability property is write-only in the response validation. If so, report an error.
2019-11-04 14:45:27 +08:00
Ray Chen 3e29e1344a
Report exmaple position for request errors (#445)
* Report exmaple position for request errors

Issues#423

* Prevent duplicate loading example file.

* Add some await keyword.

* Fixed unit test.
2019-09-04 13:48:49 +08:00
Amar Zavery 4123d46bee
fix validation for nullable array types and fix a discrepancy in specResolver (#440)
* fix validation for nullable array types and fix a discrepancy in specResolver

* update test snapshot

* apply patch
2019-07-30 15:17:13 -07:00
Renhe Li 8a7bace89e
Update pathInPayLoad for MISSING_REQUIRED_PROPERTIES and OBJECT_ADDITONAL_PROPERTIES (#438)
* Path in payload for MISSING_REQUIRED_PROPERTIES and for OBJECT_ADDITIONAL_PROPERTIES should point to the property.

* Update the handling for JsonPathInPayload

* Put the missing/additional property handling into setPathProperties

* revert the change in LiveValidator.ts

* Modify the snapshot of the test and change the version to 0.18.7

* update the minor version instead of patch version
2019-07-12 11:21:34 +08:00
Ray Chen 6b4c9a849e Added one more rule for response validation in model validation. (#436)
* Added one more rule for reponse validation.

Fail the validation when there's schema defined for response body in spec but the example
response doesn't provide the body in response.

* Fix the exmaples for unit tests.

* Added two more unit tests.

Coverage for the new added rules about body/schema validation in
response.

* Apply snapshot patch.

* Bump package version and update changeLog file.

* Apply snapshot patch.

* Update version number in changeLog.

* Apply snapshots patch again.

* Update per the review comment.

* Update test snapshot.
2019-07-08 16:02:37 -07:00
Eric Williams 317296ba10 Updating regression test snapshots (#429) 2019-06-12 16:11:39 -07:00
Eric Williams d54eaf3cfd
Adding support for JSON path & schema path in errors (#428)
* JSON path support
* Support for schemaPath in errors
2019-06-12 14:19:59 -07:00
Amar Zavery 9b3f0009ec
update cache initialization to Promise.all and update yuml2svg package version and add test for readonly properties (#424)
* update cache initialization to Promise.all and update yuml2svg package version

* nit fix and test artifact update

* Adding tests for validating readOnly properties

* Fix type issue

* Fix type

* Add amar snapshot changes

* address code review feedback

* update changelog and bump min version of yasway to 1.7.3
2019-05-29 15:37:21 -07:00
billytrend 2c03e13db1
Add regression suites for validateExamples (#403) 2019-05-08 11:39:02 -07:00