Description: Checks whether required parameter is removed / made optional from the previous specification.
Cause: TBD.
Example: Required parameter c
is being removed without revising api-version.
Old specification
{
"swagger": "2.0",
"info": {
"title": "swagger",
"description": "The Azure Management API.",
"version": "2016-12-01",
...
...
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Contoso/resource1/{a}": {
"get": {
...
...
"parameters": [
{
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "a",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "b",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "c",
"in": "query",
"required": true,
"type": "string"
}
]
...
...
},
"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/{a}": {
"get": {
...
...
"parameters": [
{
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "a",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "b",
"in": "query",
"required": true,
"type": "string"
}
]
...
...
},
"put": {
...
}
}
...
...