Skip to content

Files

Latest commit

aec54e9 · Oct 10, 2022

History

History
37 lines (21 loc) · 741 Bytes

non-empty-client-name.md

File metadata and controls

37 lines (21 loc) · 741 Bytes

NonEmptyClientName

Category

SDK Error

Applies to

ARM and Data plane OpenAPI(swagger) specs

Output Message

Empty x-ms-client-name property.

Description

The x-ms-client-name extension is used to change the name of a parameter or property in the generated code.

Why the rule is important

This value cannot be empty, because we need to use it as the identifier for a property or model.

How to fix the violation

Add a non-empty value for x-ms-client-name.

Impact on generated code

Generated SDK code will expose the corresponding client name on property or model.

Examples

...
"x-ms-client-name": "name"
...