Azure / Azure/azure-openapi-validator

Conflicting validations for POST OperationId

Open
#171 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

We have a strict rule that requires name of a method in SDK [that wraps a POST apiCall] to match with action part of the Uri (the last segment of the Uri).

Let's say the Uri is:

POST /subscriptions/{subscriptionId}/providers/Microsoft.Subscriptions.Admin/moveSubscriptions

When conforming to above rule, the method name in SDK become `moveSubscriptions` (so operationId is YYY_MoveSubscriptions) At the same time linter produces a warning if the method name in operationId is not noun. These two validations are conflicting.

To discuss: Should we update our linter validations such as non-noun method name validation won’t be performed when the method name is derived from the POST action segment?

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.