* support round trip validation
* test
* test
* add tests with roundtrip option
* merge ref sibling loader with current jsonloader
* add general validation tests
* update tests
* update test
* update test
* add snapshot
* update test
* test
* fix
* remove refsibling
* update changelog
* bump version
* fix
* rename method
* rename payload file
* fix parseValidationRequest
* add TrafficValidatorTests
* test case
* test case
* revert
* fix test case
* fix empty report
* fix test case
* rename folder
* resolve comments
* 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
* 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>
* draft: init
* test 01
* update ref
* update attrs
* checker
* update
* update
* update
* remove lazy build
* version 1: ready for tests
* lazy build init
* add test
* update lazy build and test
* update
* fix some comment
* add todos before useing loader
* test for swaggerloader
* use swagger loader
* swagger loader for test
* use traverse swagger
* add comment and use resolveRef as parameter
* remove debug log
* update test and init operationLoader outof while-loop
* use snapshot
* use provider in SwaggerSpec
* update package
* update package from develop
* update package from develop no update
* adopt shouldResolveRef in loader opt
* update test
* update test case
* update properties parser
* update snap
* update snap
* 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>
* 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
* Refactor and seperate validate method
* re-use seperate validations
* refactoring
* use globby instead of glob sync
* mark that is a breaking change
* new return types
* Add snapshot tests
* Add snapshot tests for live validation
* Add option for relative source location url
* Add severity
* Don't expose get operations externally anymore