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
**Description**: Property indicated as required according to [OpenAPI 2.0 specification](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md) for this schema.
193
+
194
+
**How to fix the violation**: Adding this property to schema in swagger.
@@ -861,22 +882,38 @@ This document lists the set of automated rules that can be validated against swa
861
882
862
883
**Output Message**: Respond to the initial request of a long running operation, Patch/Post call must return 201 or 202, Delete call must return 202 or 204, Put call must return 202 or 201 or 200, but {statusCode} being returned.
863
884
864
-
**Description**: Long running operation must return specific response code as per http method type when this operation is annotated with x-ms-long-running-operation:true. See [RPC - Asynchronous Operations](https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations) for more details.
885
+
**Description**: Long running operation must return specific response code as per http method type in example or in traffic payload when this operation is annotated with x-ms-long-running-operation:true. See [RPC - Asynchronous Operations](https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations) for more details.
865
886
866
-
**How to fix the violation**: Correct the response code per the guidance or remove annotation of x-ms-long-running-operation.
887
+
**How to fix the violation**: Correct the response code per the guidance or remove annotation of x-ms-long-running-operation in example or in traffic payload.
**Output Message**: Long running operation should return {header} in header but not being provided.
871
892
872
893
**Description**: Long running operation must return location header or azure-AsyncOperation header in response when this operation is annotated with x-ms-long-running-operation:true.
873
894
874
-
**How to fix the violation**: Adding one of these headers to the response.
895
+
**How to fix the violation**: Adding one of these headers to the response in example or in traffic payload.
**Output Message**: id is required to return in response of GET/PUT resource calls but not being provided.
879
900
880
901
**Description**: `id` is a required field of azure resource to return in response body of each GET or PUT call when this resource is annotated as x-ms-azure-resource: true. This field is important to the platform because it is used as the identifier for references on other objects. e.g. "id": "/subscriptions/{id}/resourceGroups/{group}/providers/{rpns}/{type}/{name}".
881
902
882
-
**How to fix the violation**: Adding id to the response body.
903
+
**How to fix the violation**: Adding id to the response body in example or in traffic payload.
**Output Message**: "x-ms-example" not found in {"operationId"} operation.
908
+
909
+
**Description**: Example is required to provide for each operation and it's annotated by "x-ms-example". Example is important because it is displayed in rest API document. See [x-ms-examples](https://github.com/Azure/azure-rest-api-specs/blob/main/documentation/x-ms-examples.md) for details.
910
+
911
+
**How to fix the violation**: Adding separated example JSON file and reference it with "x-ms-examples" annotation in swagger.
0 commit comments