Skip to content

Latest commit

 

History

History
77 lines (73 loc) · 1.65 KB

File metadata and controls

77 lines (73 loc) · 1.65 KB

1006 - RemovedDefinition

Description: Checks whether an existing model definition is removed from the previous specification.

Cause: This is considered a breaking change even in a new api-version. Example: Model definition CreateParameters is being removed without revising api-version.

Old specification

{
  "swagger": "2.0",
  "info": {
    "title": "swagger",
    "description": "The Azure Management API.",
    "version": "2016-12-01",
    ...
    ...
  "definitions": {
    ...
    "CreateParameters": {
      "properties": {
        "a": {
          "type": "string",
          "description": "Required. Property a."
        },
        "b": {
          "type": "string",
          "description": "Required. Property b."
        },
        "c": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Property c."
        }
      },
      "required": [
        "a",
        "b"
      ],
      "description": "The parameters used when create operation."
    },
    ...  

New specification

{
  "swagger": "2.0",
  "info": {
    "title": "swagger",
    "description": "The Azure Management API.",
    "version": "2016-12-01",
    ...
    ...
  "definitions": {
    ...
    "Parameters": {
      "properties": {
        "a": {
          "type": "string",
          "description": "Required. Property a."
        },
        "b": {
          "type": "string",
          "description": "Required. Property b."
        }
      },
      "required": [
        "a",
        "b"
      ],
      "description": "The parameters used when create operation."
    },
    ...