Skip to content

Commit ed07426

Browse files
mikekistlerMilan Zolota
authored andcommitted
Fix example for XmsClientNameParameter rule (Azure#16019)
* Fix example for XmsClientNameParameter rule * Address PR review comments
1 parent 88d93b2 commit ed07426

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

documentation/openapi-authoring-automated-guidelines.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -501,27 +501,15 @@ Links: [Index](#index) | [Error vs. Warning](#error-vs-warning) | [Automated Rul
501501

502502
**Examples**:
503503
```json
504-
"parameters": {
505-
"ApiVersionParameter": {
506-
"name": "x-ms-version",
507-
"x-ms-client-name": "version",
504+
"parameters": [
505+
{
506+
"name": "If-Match",
508507
"in": "header",
509508
"required": false,
510509
"type": "string",
511-
"x-ms-global": true,
512-
"enum": [
513-
"2015-04-05",
514-
"2014-02-14",
515-
"2013-08-15",
516-
"2012-02-12",
517-
"2011-08-18",
518-
"2009-09-19",
519-
"2009-07-17",
520-
"2009-04-14"
521-
],
522-
"default": "2015-04-05",
523-
"description": "Specifies the version of the operation to use for this request."
524-
}
510+
"x-ms-client-name": "IfMatch",
511+
"description": "The ETag of the resource to match."
512+
},
525513
```
526514

527515
Links: [Index](#index) | [Error vs. Warning](#error-vs-warning) | [Automated Rules](#automated-rules) | [ARM](#arm-violations): [Errors](#arm-errors) or [Warnings](#arm-warnings) | [SDK](#sdk-violations): [Errors](#sdk-errors) or [Warnings](#sdk-warnings)

0 commit comments

Comments
 (0)