Skip to content

Latest commit

 

History

History
57 lines (52 loc) · 1.22 KB

1008.md

File metadata and controls

57 lines (52 loc) · 1.22 KB

1008 - ModifiedOperationId

Description: Checks whether an existing operation's operationId is changed from the previous specification.

Cause: This is considered a breaking change. This change requires new api-version.

Example: operationId of Operation get from Path /subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1 is being updated without revising api-version.

Old specification

{
  "swagger": "2.0",
  "info": {
    "title": "swagger",
    "description": "The Azure Management API.",
    "version": "2016-12-01",
    ...
    ...
  "paths": {
    "/subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1": {
      "get": {
        ...
        "operationId": "GetResource1",
        ...
      },
      "put": {
        ...
      }
    }
    ...
    ...  

New specification

{
  "swagger": "2.0",
  "info": {
    "title": "swagger",
    "description": "The Azure Management API.",
    "version": "2016-12-01",
    ...
    ...
  "paths": {
    "/subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1": {
      "get": {
        ...
        "operationId": "ListResource1",
        ...
      },
      "put": {
        ...
      }
    }
    ...
    ...