Azure / Azure/azure-openapi-validator

TagsAreNotAllowedForProxyResource Incorrectly flagging patch request body as resource

Open
#742 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
53
Forks
57
Avg merge
1d 23h
Merged PRs (30d)
2

Description

**Describe the bug**
Here is an example: https://github.com/Azure/azure-rest-api-specs-pr/pull/19477/checks?check_run_id=29850162346

In this case, a well-crafted PATCH request body for a tracked resource is flagged as an instance of a proxy resource with a Tags property. Obviously, this is not a resource and this should produce no violation.

**To Reproduce**
Steps to reproduce the behavior: https://github.com/Azure/azure-rest-api-specs-pr/pull/19477/checks?check_run_id=29850162346

**Expected behavior**
This rule should not have dtected this as a resource - the schema is only used in PATCH request body and not in PUT or as the response of any crud operation over the resource.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
n/a This is simply a rules violation

**Additional context**
Add any other context about the problem here.

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.