Azure / Azure/azure-openapi-validator

Cannot suppress errors in $refs using "where" clauses

Open
#699 0 comments 0 reactions 1 assignee Claimed by @mikeharder View on GitHub
Dominant language
TypeScript
Stars
53
Forks
57
Avg merge
1d 23h
Merged PRs (30d)
2

Description

Is this PR, there are only 3 instances of vmTags.additionalProperties in the source code, but about 9 AvoidAdditionalProperties errors are reported, since the instances are consumed other places via $ref.

https://github.com/Azure/azure-rest-api-specs/pull/29101/checks?check_run_id=25631949240

![image](https://github.com/Azure/azure-openapi-validator/assets/9459391/23e33392-7bff-4607-9974-242774454012)

Neither the spec author, nor I, was able to suppress the errors raised via properties inside `$ref`s using `where` clauses. So the spec author had to use a global suppress.

If #697 is fixed, this issue might be moot, since the errors will never be raised in the first place. But it would still be good to know **why** these can't be suppressed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.