* 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>
* some general cleanup of the test area. removing some extraneous launch.json configurations
* update tsconfig to resolve additional warnings for 'tsConfig'
* add test utility for cloning a targeted pr
* rename xMsReadOnlyRef to xmsReadonlyRef, resolving the 9 or so regressions caused by #996 and #1004
---------
Co-authored-by: semick-dev <sbeddall@gmail.com>
* Add new regression pipeline. This workload runs on four pipelines, Two target versions of oav, both validate-spec and validate-example on each. Within each pipeline, we clone the complete azure-rest-api-specs repository and invoke the chosen oav version + check against each spec present within the repo
* Finally, we diff the outputs, to catch any OAV behavior regressions
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>
* add example-generation doc to the review. beginning to update the two error reference docs with the possible errors
* cross-compare of the full list versus what we have documented in the error set
* remove accidentally duplicated entry
* 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>