Skip to content

Latest commit

 

History

History
72 lines (67 loc) · 1.5 KB

1039.md

File metadata and controls

72 lines (67 loc) · 1.5 KB

1039 - AddedOperation

Description: Checks whether a new operation in an existing path is added from the previous specification.

Cause: This is considered a additive change in new api-version but a breaking in same api-version.

Example: Operation get in Path /subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1/subResource1 is being added 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": {
        ...
      },
      "put": {
        ...
      }
    },
    "/subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1/subResource1": {
      "post": {
        ...
      },
      "delete": {
        ...
      }
    }
    ...
    ... 

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": {
        ...
      },
      "put": {
        ...
      }
    },
    "/subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1/subResource1": {
      "get": {
        ...
      },
      "post": {
        ...
      },
      "delete": {
        ...
      }
    }
    ...
    ...