* rename xMsReadOnlyRef to xmsReadonlyRef, resolving the 9 or so regressions caused by #996 and #1004
---------
Co-authored-by: semick-dev <sbeddall@gmail.com>
* This PR adds to the 'selective ignore' list that is maintained to bypass certain errors that we want to ignore. here's the thing. I really think that the true solution is to fix this in the schema schemaValidator, as it's error on the property we're adding to the schema. Is there such a thing as properties on the schema that are present, but totally ignored for the purposes of validation? Need to investigate. in the meantime, this is what it would look like to just ignore this specific error
* move the test with the others
* apply prettier fixes
* add the necessary package and changelog updates to reflect the PR
---------
Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
* Add refWithReadOnly
* Update isRefLike() to populate refWithReadOnly
* Add additional test file from mike kistler that should simulate the problem this branch is addressing
* Update test/modelValidation/swaggers/specification/readonlyNotRequired/openapi.json
Co-authored-by: Ke Yu <v-ky@microsoft.com>
Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com>
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
* 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
* 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>
* add part of task
* add some changes about render full page render
* change position between test-failed and not-tested
* fix comment and change template that can support general normal case
* upper case api
Co-authored-by: v-tianxi@microsoft.com <v-tian@microsoft.com>
Co-authored-by: Ray Chen <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>
* Ignore INVALID_TYPE validation in case of query parameter in string format
* update revalidate logic
* align change log version
* put all the revalidate logic to function ReValidateIfNeed()
* set timeout to single test
* update revalidate logic
* update revalidate logic and test files
* clean old codes
* fix bug about date-time validation
* test if the bug is fixed
* add test property and bump version
* update test property
Co-authored-by: Ray Chen <raychen@microsoft.com>
* Fix false alarm for NOT_PASSED about multipleOf
* add test and update change log
* update test payload
* bump version to 2.11.5
* reduce the size of the payload file
* update validation logic
* Fix false alarm for WRITEONLY_PROPERTY_NOT_ALLOWED_IN_RESPONSE
* update
* fix x-ms-secret check and add test case
* fix test error
* update rule for x-ms-mutability
* add test for more cases
* add test comments, update change log
* add validation on error code in tests
* update error code validation in tests
* add new rules INVALID_XMS_DISCRIMINATOR_VALUE and DISCRIMINATOR_PROPERTY_NOT_FOUND
* fix error meta param
* continue when invalid discriminator type
* fix comments
Co-authored-by: Tianxiang Chen <tianxchen@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>