Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 742 Bytes

resource-has-x-ms-resource-enabled.md

File metadata and controls

25 lines (13 loc) · 742 Bytes

ResourceHasXMsResourceEnabled

Category

SDK Error

Applies to

ARM OpenAPI(swagger) specs

Output Message

A 'Resource' definition must have x-ms-azure-resource extension enabled and set to true.

Description

A 'Resource' definition must have x-ms-azure-resource extension enabled and set to true. This will indicate that the model is an Azure resource.

Why the rule is important

This will ensure that the 'Resource' definition is designed correctly in code generation.Please refer here for further details.

How to fix the violation

Ensure that the 'Resource' definition has x-ms-azure-resource extension enabled and set to true.