Azure / Azure/azure-openapi-validator

Arm-Validator does not enforce 200 and 201 on PUT contract

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

Description

Also if the response code is `204`, then according to HttpSpec, it should not have any content. It does not even catch that.
**Referred Spec**
https://github.com/Azure/azure-rest-api-specs/blob/master/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/apimportalsettings.json#L209

Contributor guide

Open the contributing guide

Research direction

Start with the referenced specification file, apimportalsettings.json, at the linked PUT contract. Trace the validator entry point that checks response status codes and 204 responses, then verify that the contract rejects statuses other than 200 or 201 for PUT and rejects content on 204 responses.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, typescript
Domain
api, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.