Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 912 Bytes

1042.md

File metadata and controls

59 lines (50 loc) · 912 Bytes

1042 - ChangedParameterOrder

Description: Check whether operation parameter order is changed. If operation parameter order changed, it causes SDK breaking change.

Cause: This is considered a breaking change.

Related rules

Example: Parameter order change from a, b, e to a, e, b.

Old specification

"parameters": [
{
    "name": "a",
    "in": "body",
    "required": true,
    "type": "string"
},
{
    "name": "b",
    "in": "body",
    "required": true,
    "type": "string"
},
{
    "name": "e",
    "in": "body",
    "type": "string"
},
]

New specification

"parameters": [
{
    "name": "a",
    "in": "body",
    "required": true,
    "type": "string"
},
{
    "name": "e",
    "in": "body",
    "type": "string"
},
{
    "name": "b",
    "in": "body",
    "required": true,
    "type": "string"
},
]