Skip to content

Latest commit

 

History

History
70 lines (66 loc) · 1.47 KB

File metadata and controls

70 lines (66 loc) · 1.47 KB

1026 - TypeChanged

Description: Checks whether an existing property has changed the type from the previous specification.

Cause: This is considered a breaking change. Example: Property b is being changed from string to boolean 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."
        }
      },
      "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": {
    ...
    "CreateParameters": {
      "properties": {
        "a": {
          "type": "string",
          "description": "Required. Property a."
        },
        "b": {
          "type": "boolean",
          "description": "Required. Property b."
        }
      },
      "required": [
        "a",
        "b"
      ],
      "description": "The parameters used when create operation."
    },
    ...