[Cosmos DB] Microsoft.DocumentDB New API Version 2024-05-15-preview #28368
openapi-pipeline-app / Swagger LintDiff
succeeded
May 13, 2024 in 5m 47s
Swagger LintDiff succeeded
Details
Compared specs (v2.2.2) | new version | base version |
---|---|---|
package-preview-2024-05 | package-preview-2024-05(4e2ec21) | default(main) |
[must fix]The following errors/warnings are introduced by current PR:
Rule | Message | Related RPC [For API reviewers] |
---|---|---|
A nested resource type's List operation must include all the parent segments in its api path. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/networkSecurityPerimeter.json#L19 |
RPC-Get-V1-11 | |
Do not have duplicate name of x-ms-example, make sure every x-ms-example name unique. Duplicate x-ms-example: NamspaceNetworkSecurityPerimeterConfigurationList Location: Microsoft.DocumentDB/preview/2024-05-15-preview/networkSecurityPerimeter.json#L70 |
||
Use the latest version v5 of types.json. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/networkSecurityPerimeter.json#L168 |
||
Consider using x-ms-client-flatten to provide a better end user experience Location: Microsoft.DocumentDB/preview/2024-05-15-preview/networkSecurityPerimeter.json#L235 |
||
Consider using x-ms-client-flatten to provide a better end user experience Location: Microsoft.DocumentDB/preview/2024-05-15-preview/networkSecurityPerimeter.json#L259 |
||
Consider using x-ms-client-flatten to provide a better end user experience Location: Microsoft.DocumentDB/preview/2024-05-15-preview/networkSecurityPerimeter.json#L309 |
||
Consider using x-ms-client-flatten to provide a better end user experience Location: Microsoft.DocumentDB/preview/2024-05-15-preview/networkSecurityPerimeter.json#L355 |
||
Property location must have 'x-ms-mutability':['read', 'create'] extension defined.Location: Microsoft.DocumentDB/preview/2024-05-15-preview/networkSecurityPerimeter.json#L431 |
RPC-Put-V1-14 |
The following errors/warnings exist before current PR submission:
Only 50 items are listed, please refer to log for more details.
Rule | Message |
---|---|
GetCollectionResponseSchema |
The response in the GET collection operation 'CassandraClusters_ListCommand' does not match the response definition in the individual GET operation 'CassandraClusters_GetCommandAsync' . Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L36 |
PatchResponseCodes |
Long-running PATCH operations must have responses with 200, 202 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L69 |
PatchBodyParametersSchema |
Properties of a PATCH request body must not be required, property:defaultConsistencyLevel. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L95 |
PatchBodyParametersSchema |
Properties of a PATCH request body must not be required, property:type. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L95 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L110 |
DeleteResponseCodes |
Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L157 |
PostResponseCodes |
Long-running POST operations must have responses with 202 and default return codes. They must also have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L201 |
PostResponseCodes |
Synchronous POST operations must have one of the following combinations of responses - 200 and default ; 204 and default. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L317 |
PostResponseCodes |
Synchronous POST operations must have one of the following combinations of responses - 200 and default ; 204 and default. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L350 |
PostResponseCodes |
200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L386 |
DefaultErrorResponseSchema |
the default error response schema does not correspond to the schema documented at https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-details.md#error-response-content. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L435 |
PostResponseCodes |
200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L445 |
DefaultErrorResponseSchema |
the default error response schema does not correspond to the schema documented at https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-details.md#error-response-content. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L494 |
XmsPageableForListCalls |
x-ms-pageable extension must be specified for LIST APIs.Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L504 |
PostResponseCodes |
Synchronous POST operations must have one of the following combinations of responses - 200 and default ; 204 and default. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L535 |
PostResponseCodes |
Long-running POST operations must have responses with 202 and default return codes. They must also have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L568 |
NoErrorCodeResponses |
Invalid status code specified. Please refer to the documentation for the allowed set. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L641 |
OperationsApiResponseSchema |
The response schema of operations API '/providers/Microsoft.DocumentDB/operations' does not match the ARM specification. Please standardize the schema. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L667 |
OperationsApiSchemaUsesCommonTypes |
Operations API path must follow the schema provided in the common types. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L668 |
PathForNestedResource |
The path for nested resource doest not meet the valid resource pattern. There is one exception for extension resources with fully qualified path and the author can go ahead and suppress the error(look at https://github.com/Azure/azure-openapi-validator/blob/main/docs/path-for-nested-resource.md#pathfornestedresource for more details) Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L938 |
PathForNestedResource |
The path for nested resource doest not meet the valid resource pattern. There is one exception for extension resources with fully qualified path and the author can go ahead and suppress the error(look at https://github.com/Azure/azure-openapi-validator/blob/main/docs/path-for-nested-resource.md#pathfornestedresource for more details) Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L980 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L1570 |
DeleteResponseCodes |
Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L1627 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L1747 |
DeleteResponseCodes |
Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L1807 |
EvenSegmentedPathForPutOperation |
API path with PUT operation defined MUST have even number of segments (i.e. end in {resourceType}/{resourceName} segments). Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L1853 |
XmsPageableForListCalls |
x-ms-pageable extension must be specified for LIST APIs.Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L1854 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L1888 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L2135 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L2273 |
DeleteResponseCodes |
Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L2339 |
EvenSegmentedPathForPutOperation |
API path with PUT operation defined MUST have even number of segments (i.e. end in {resourceType}/{resourceName} segments). Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L2527 |
XmsPageableForListCalls |
x-ms-pageable extension must be specified for LIST APIs.Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L2528 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L2565 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L3111 |
DeleteResponseCodes |
Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L3174 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L3309 |
DeleteResponseCodes |
Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L3372 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L3507 |
DeleteResponseCodes |
Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L3570 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L3693 |
DeleteResponseCodes |
Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L3753 |
EvenSegmentedPathForPutOperation |
API path with PUT operation defined MUST have even number of segments (i.e. end in {resourceType}/{resourceName} segments). Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L3799 |
XmsPageableForListCalls |
x-ms-pageable extension must be specified for LIST APIs.Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L3800 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L3834 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L4365 |
DeleteResponseCodes |
Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L4428 |
EvenSegmentedPathForPutOperation |
API path with PUT operation defined MUST have even number of segments (i.e. end in {resourceType}/{resourceName} segments). Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L4616 |
XmsPageableForListCalls |
x-ms-pageable extension must be specified for LIST APIs.Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L4617 |
PutResponseCodes |
Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes. Location: Microsoft.DocumentDB/preview/2024-05-15-preview/cosmos-db.json#L4654 |
Loading