Skip to content

Latest commit

 

History

History
61 lines (56 loc) · 1.22 KB

1038.md

File metadata and controls

61 lines (56 loc) · 1.22 KB

1038 - AddedPath

Description: Checks whether a new 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: New path /subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1/subResource1 is being added.

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": {
        ...
      }
    }
    ...
    ...  

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": {
        ...
      },
      "delete": {
        ...
      }
    }
    ...
    ...