You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Output Message** : The path '{api path}' which is for extension routing resource type, shouldn't include the parent scope.
3515
+
3516
+
**Description**: Path (operation) for 'extension routing type' (that has additional /providers/ segment in parent scope) must be of the form '{scope}/provider/RPNamespace/resourceTypeName' (shouldn't include parent scope)
3517
+
3518
+
**CreatedAt**: November 8, 2021
3519
+
3520
+
**LastModifiedAt**: November 8, 2021
3521
+
3522
+
**Why this rule is important**: The parent scope won't be passed over to PRaaS, and the API will fail in RPaaS validation.
3523
+
3524
+
**How to fix the violation**:
3525
+
Move the parent resource URI to the 'scope' parameter which is string type.
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)
3538
+
3539
+
### <aname="r4039"></a>R4039 ParametersOrder
3540
+
3541
+
**Category** : SDK Error
3542
+
3543
+
**Applies to** : ARM and Data Plane OpenAPI(swagger) specs
3544
+
3545
+
**Output Message** : The parameters should be kept in the same order as they present in the path.
3546
+
3547
+
**Description**: The rule is to ensure the parameters in the same order as they are ranked in the path. Since it can introduce a breaking change when updating parameter order, for services that have already shipped public versions, you may request to suppress the rule following the process documented here: https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/85/Swagger-Suppression-Process
3548
+
3549
+
**CreatedAt**: November 8, 2021
3550
+
3551
+
**LastModifiedAt**: November 8, 2021
3552
+
3553
+
**Why this rule is important**: AutoRest generates SDKs with parameters in the order as they are defined in the Swagger. The only exceptional cases are:
3554
+
1. 'body' should be always at last;
3555
+
2. 'required' should be always placed before 'optional'
3556
+
3557
+
**How to fix the violation**:
3558
+
re-order the parameters as the order in the api path.
3559
+
3560
+
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)
3561
+
3562
+
### <aname="r4040"></a>R4040 EnumMustRespectType
3563
+
3564
+
**Category** : SDK Error
3565
+
3566
+
**Applies to** : ARM and Data Plane OpenAPI(swagger) specs
3567
+
3568
+
**Output Message** : Enum values should respect the type.
3569
+
3570
+
**Description**: This rule is to check if the enum values conform to the type.
3571
+
3572
+
**CreatedAt**: November 10, 2021
3573
+
3574
+
**LastModifiedAt**: November 10, 2021
3575
+
3576
+
**Why this rule is important**: It will lead to code generation failure in SDK generation pipeline.
3577
+
3578
+
**How to fix the violation**:
3579
+
Just change the enum value to the right type.
3580
+
3581
+
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