Azure / azure-openapi-validator

Azure Open API Validator
MIT License
47 stars 46 forks source link

Fixes the issue with PatchPropertiesCorrespondToPutProperties #623

Closed tejaswiMinnu closed 10 months ago

tejaswiMinnu commented 10 months ago

The PatchPropertiesCorrespondToPutProperties rule should verify whether a given path contains both PUT and PATCH calls. If either of this call is missing, the lint check should raise a fatal error. The comparison of properties between these two calls becomes problematic when one of them (in this case, PATCH) is undefined. Consequently, applying a filter to retrieve properties from an undefined variable is not feasible.

PR which failed with Fatal Errors: https://github.com/Azure/azure-rest-api-specs/pull/26281/checks?check_run_id=17848084756