* update rule for additionalProperties
* update snapshot
* rename label about additional properties with object type
Co-authored-by: Ke Yu <v-ky@microsoft.com>
Co-authored-by: Ray Chen <raychen@microsoft.com>
* 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>
* 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>
* new version of model validation
* package info change
* Update some tests
* clean up some unused code
* support formData parameter
* fix lint issue
* update snapshot
* resolve external swagger error path
* fixed style issue
* fix error in semantic validator test while merging branch 'new-mv' (#691)
* fix snapshots
Co-authored-by: KeYu(AnkhSpirit) <33389195+KeYu-AnkhSpirit@users.noreply.github.com>
* 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>
* Enable request parameter suppression.
Added suppression as member property in base class;
Request only includes parameter, enable parameter name match suppression.
* 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>
* 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
* 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
* 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.
* 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