Skip to content

Latest commit

 

History

History
54 lines (48 loc) · 1.31 KB

File metadata and controls

54 lines (48 loc) · 1.31 KB

1023 - TypeFormatChanged

Description: Checks whether any existing property's format element has changed from the previous specification.

Cause: This is considered a breaking change, exceptions in new api-version: 1 widening integer("int32" -> "int64") in request
2 narrowing integer ("int64" -> "int32") in response .

Example: Property a of Parameter CreateParameters changed format from int64 to int32 in the new version.

Old specification

{
  "swagger": "2.0",
  "info": {
    "title": "swagger",
    "description": "The Azure Management API.",
    "version": "2016-12-01",
    ...
    ...
  "definitions": {
    ...
    "CreateParameters": {
      "properties": {
        "a": {
          "type": "integer",
          "description": "Property a.",
          "format": "int64"
        },
        ...  

New specification

{
  "swagger": "2.0",
  "info": {
    "title": "swagger",
    "description": "The Azure Management API.",
    "version": "2016-12-01",
    ...
    ...
  "definitions": {
    ...
    "CreateParameters": {
      "properties": {
        "a": {
          "type": "integer",
          "description": "Property a.",
          "format": "int32"
        },
        ...