Skip to content

Commit

Permalink
Merge pull request kubernetes#105916 from kevindelgado/validation-uni…
Browse files Browse the repository at this point in the history
…fy-all

Server Side Strict Field Validation
  • Loading branch information
k8s-ci-robot committed Nov 19, 2021
2 parents ddfc539 + e50e2bb commit 8f9dd0a
Show file tree
Hide file tree
Showing 85 changed files with 9,336 additions and 725 deletions.
2,516 changes: 2,203 additions & 313 deletions api/openapi-spec/swagger.json

Large diffs are not rendered by default.

630 changes: 630 additions & 0 deletions api/openapi-spec/v3/api__v1_openapi.json

Large diffs are not rendered by default.

Expand Up @@ -183,6 +183,15 @@
"type": "string",
"uniqueItems": true
}
},
{
"name": "fieldValidation",
"in": "query",
"description": "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.",
"schema": {
"type": "string",
"uniqueItems": true
}
}
],
"requestBody": {
Expand Down Expand Up @@ -462,6 +471,15 @@
"type": "string",
"uniqueItems": true
}
},
{
"name": "fieldValidation",
"in": "query",
"description": "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.",
"schema": {
"type": "string",
"uniqueItems": true
}
}
],
"requestBody": {
Expand Down Expand Up @@ -645,6 +663,15 @@
"type": "string",
"uniqueItems": true
}
},
{
"name": "fieldValidation",
"in": "query",
"description": "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.",
"schema": {
"type": "string",
"uniqueItems": true
}
}
],
"requestBody": {
Expand Down Expand Up @@ -868,6 +895,15 @@
"type": "string",
"uniqueItems": true
}
},
{
"name": "fieldValidation",
"in": "query",
"description": "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.",
"schema": {
"type": "string",
"uniqueItems": true
}
}
],
"requestBody": {
Expand Down Expand Up @@ -1147,6 +1183,15 @@
"type": "string",
"uniqueItems": true
}
},
{
"name": "fieldValidation",
"in": "query",
"description": "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.",
"schema": {
"type": "string",
"uniqueItems": true
}
}
],
"requestBody": {
Expand Down Expand Up @@ -1330,6 +1375,15 @@
"type": "string",
"uniqueItems": true
}
},
{
"name": "fieldValidation",
"in": "query",
"description": "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.",
"schema": {
"type": "string",
"uniqueItems": true
}
}
],
"requestBody": {
Expand Down
45 changes: 45 additions & 0 deletions api/openapi-spec/v3/apis__apiextensions.k8s.io__v1_openapi.json
Expand Up @@ -183,6 +183,15 @@
"type": "string",
"uniqueItems": true
}
},
{
"name": "fieldValidation",
"in": "query",
"description": "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.",
"schema": {
"type": "string",
"uniqueItems": true
}
}
],
"requestBody": {
Expand Down Expand Up @@ -462,6 +471,15 @@
"type": "string",
"uniqueItems": true
}
},
{
"name": "fieldValidation",
"in": "query",
"description": "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.",
"schema": {
"type": "string",
"uniqueItems": true
}
}
],
"requestBody": {
Expand Down Expand Up @@ -645,6 +663,15 @@
"type": "string",
"uniqueItems": true
}
},
{
"name": "fieldValidation",
"in": "query",
"description": "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.",
"schema": {
"type": "string",
"uniqueItems": true
}
}
],
"requestBody": {
Expand Down Expand Up @@ -775,6 +802,15 @@
"type": "string",
"uniqueItems": true
}
},
{
"name": "fieldValidation",
"in": "query",
"description": "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.",
"schema": {
"type": "string",
"uniqueItems": true
}
}
],
"requestBody": {
Expand Down Expand Up @@ -862,6 +898,15 @@
"type": "string",
"uniqueItems": true
}
},
{
"name": "fieldValidation",
"in": "query",
"description": "fieldValidation determines how the server should respond to unknown/duplicate fields in the object in the request. Introduced as alpha in 1.23, older servers or servers with the `ServerSideFieldValidation` feature disabled will discard valid values specified in this param and not perform any server side field validation. Valid values are: - Ignore: ignores unknown/duplicate fields. - Warn: responds with a warning for each unknown/duplicate field, but successfully serves the request. - Strict: fails the request on unknown/duplicate fields.",
"schema": {
"type": "string",
"uniqueItems": true
}
}
],
"requestBody": {
Expand Down

0 comments on commit 8f9dd0a

Please sign in to comment.