Azure / Azure/azure-sdk-tools

Apparent false positive for RequiredPropertiesMissingInResourceModel

Open
#10,683 2 comments 0 reactions 0 assignees View on GitHub
needs-triage
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

Opening this because for review, I'm not understanding how this error arose with regard to ListUsageResult definition

https://github.com/Azure/azure-rest-api-specs/blob/4743cc5ba84816d4b5aa534e3eda1b30526a03c7/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-04-01-preview/machineLearningServices.json#L1168

https://github.com/Azure/azure-rest-api-specs/blob/4743cc5ba84816d4b5aa534e3eda1b30526a03c7/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-04-01-preview/machineLearningServices.json#L1118

❌ RequiredPropertiesMissingInResourceModel | Model definition 'ListUsagesResult' must have the properties 'name', 'id' and 'type' in its hierarchy and these properties must be marked as readonly.Location: Microsoft.MachineLearningServices/preview/2025-04-01-preview/machineLearningServices.json#L1168
-- | --

❌ [RequiredPropertiesMissingInResourceModel](https://github.com/Azure/azure-openapi-validator/blob/main/docs/required-properties-missing-in-resource-model.md) Model definition 'ListUsagesResult' must have the properties 'name', 'id' and 'type' in its hierarchy and these properties must be marked as readonly.
Location: [Microsoft.MachineLearningServices/preview/2025-04-01-preview/machineLearningServices.json#L1168](https://github.com/Azure/azure-rest-api-specs/blob/4743cc5ba84816d4b5aa534e3eda1b30526a03c7/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-04-01-preview/machineLearningServices.json#L1168)

Contributor guide

Open the contributing guide

Research direction

Start by comparing the ListUsagesResult definition near lines 1118 and 1168 in machineLearningServices.json with the RequiredPropertiesMissingInResourceModel documentation. Trace how the validator evaluates that model's hierarchy and readonly properties, then determine whether the diagnostic is valid and document the resulting correction or validator issue.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.