* Migrate to ms-rest-js dependency
* Update to new headers
* update changelog to mention of removal of ms-rest dependency in favor of @azure/ms-rest-js
---------
Co-authored-by: Scott Beddall <scbedd@microsoft.com>
* 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>
* re-enable additionalProperties enforcement by default. update LiveValidatorOptions to reflect presence of isArmCall which grants access to this skip
* patch one test so that the scenario that we use for validate-v2 image is correct!
* Revert "Override dependencies on `file-type` and `qs` (#973)"
* npm update. update postmanCollectionGenerator code to align with types.
* fix the prettier issue with swaggerTypes.ts
* 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
* add validation for final state via
* add validation for azure async operation
* fix comment
* add live validation for LRO final get
* fix comments
* fix comment
* add more ARM validation
* update post man rule generation
* improve postman assertion
* fix test
* Azure-AsyncOperation is prior
* fix print detail response log
* fix lint error
* fix baseUri
* update snapshot
* generate examples for LRO final get
* fix lint error
* update change log
* update package lock
---------
Co-authored-by: jianyexi <jianyxi@microsoft.com>
Co-authored-by: Lei Ni <7233663+leni-msft@users.noreply.github.com>
* log additionalProperties invalid type error only
* Delete unused swaggers
* Fixed test
* Bump version
* Updated package version for beta
* Updated param name
* Updated pkg version for release
* 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
* Support single generation rule
* change generateRule to a private property
* update the name of generationRule
* update the name of generationRule
Co-authored-by: Ray Chen <raychen@microsoft.com>
* 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
* 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>