ARM Error
ARM OpenAPI(swagger) specs
- RPC-Patch-V1-01
A PATCH request body must only contain properties present in the corresponding PUT request body, and must contain at least one property.
Validates that each PATCH request body contains properties present in the corresponding PUT request body, and must contain at least one property.
Ensure that each PATCH request body contains properties present in the corresponding PUT request body, and must contain at least one property.
"patch": {
"parameters": [
{
"name": "foo_patch",
"in": "body",
"schema": {
"$ref": "#/definitions/FooRequestParams",
}
}
]
},
"put": {
"parameters": [
{
"name": "foo_put",
"in": "body",
"schema": {
"$ref": "#/definitions/FooProps",
}
},
{
"name": "foo1_put",
"in": "body",
"schema": {
"$ref": "#/definitions/FooRequestParams",
}
}
]
}
In the following example, the PATCH request has properties that are not present in the PUT request (#/definitions/FooRequestParams).
"patch": {
"parameters": [
{
"name": "foo_patch",
"in": "body",
"schema": {
"$ref": "#/definitions/FooRequestParams",
}
}
]
},
"put": {
"parameters": [
{
"name": "foo_put",
"in": "body",
"schema": {
"$ref": "#/definitions/FooProps",
},
},
{
"name": "foo1_put",
"in": "body",
"schema": {
"$ref": "#/definitions/BarRequestParams",
},
}
]
}
In the following example, the PATCH request has no body.
"patch": {
"parameters": [
{
"name": "foo_patch",
"in": "path",
},
]
},
"put": {
"parameters": [
{
"name": "foo_put",
"in": "body",
"schema": {
"$ref": "#/definitions/FooProps",
},
},
{
"name": "foo1_put",
"in": "body",
"schema": {
"$ref": "#/definitions/BarRequestParams",
},
}
]
}
In the following example, the PATCH request has non-empty body with an empty PUT body.
"patch": {
"parameters": [
{
"name": "foo_patch",
"in": "body",
"schema": {
"$ref": "#/definitions/FooRequestParams",
},
},
]
},
"put": {
"parameters": [
{
"name": "foo_put",
"in": "path",
"schema": {
"$ref": "#/definitions/FooProps",
},
}
]
}