* Fixed two bugs in error handling.
Output model detail in log when resolve it with failure,
report error when the example reference has issues.
* Add error code.
* Add test for missing example reference.
* Revert "Update function getErrorsFromSemanticValidation to extract inner error correctly (#530)"
This reverts commit cd3896e62c.
* New function for unified pipeline to extract semantic validation inner error.
* export serializeErrorsForUnifiedPipeline
Co-authored-by: t-zhangw <codespace@72c482c53b75>
* 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>
* Fixed typeerror when search in unknownapiversion.
added check when search in unknownrp->unknownapiversion;
added unit test.
* Update changelog and bump package version.
* Fix snapshot test.
* Fall back to child resouce match for liveValidator
Fall back to match operations in cache to child resouces if having both
of parent and child resouces in request url.
* Fixed the unit tests.
Previously for polymorphic case, the discriminator value was set to
model name in case of base model. It should also keep original enum
values which is used in model validation. So this fix is to keep
original enum values then add base model as first element in the enum
values list.
The reason to put base model name as first element is the first element
is used to match the discriminator value of polymorphic models and for
base model case the discriminator should be base model name.
Added a unit test for this change.
* 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
* Extends logging and metrics.
Add corrleationId;
Log execution time for each operation;
Log splited request info for each call.
* Bump version and minor change on feedback.
* Report error if 'discriminator' is not required
Issue #386 OAV report error if the property for 'discriminator' is not a
requried property.
* Update error object.
* Add an unittest.
* Add suppression process for discriminator.
* Fix review comment and bump up package version.
* 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