'POST' list calls incorrectly flagged with 'MISSING_RESOURCE_ID' and 'OBJECT_MISSING_REQUIRED_PROPERTY'
- Dominant language
- TypeScript
- Stars
- 104
- Forks
- 62
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 5
Description
Here is an example: https://github.com/Azure/azure-rest-api-specs-pr/pull/13835/checks?check_run_id=15497000259
The method here is POST, in all 4 erroneous applications, the targeted operation is a custom POST action that should not have any requirment of returning an ID, and does not have 'id' in its schema. The linked schema in 'Missing_Resource_Id' is not the response schema for these operations.
Contributor guide
Research direction
Start by examining the linked check run and the Missing_Resource_Id validation rule, then trace how the response schema is selected for custom POST actions. Done means the four reported operations no longer receive MISSING_RESOURCE_ID or OBJECT_MISSING_REQUIRED_PROPERTY when their schemas omit id, with regression coverage for these cases if the repository provides it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, typescript
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100