mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #57087 from luksa/trailing_commas_test_swagger_json
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Remove trailing commas from test-swagger.json Trailing commas are not allowed in JSON. Commas are only allowed between values. See http://www.json.org/ **What this PR does / why we need it**: Fixes invalid JSON in test-swagger.json **Release note**: ```release-note NONE ```
This commit is contained in:
commit
2b530438f1
@ -12,7 +12,7 @@
|
|||||||
"OneKind": {
|
"OneKind": {
|
||||||
"description": "OneKind has a short description",
|
"description": "OneKind has a short description",
|
||||||
"required": [
|
"required": [
|
||||||
"field1",
|
"field1"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"field1": {
|
"field1": {
|
||||||
@ -42,23 +42,23 @@
|
|||||||
"OtherKind": {
|
"OtherKind": {
|
||||||
"description": "This is another kind of Kind",
|
"description": "This is another kind of Kind",
|
||||||
"required": [
|
"required": [
|
||||||
"string",
|
"string"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"string": {
|
"string": {
|
||||||
"description": "This string must be a string",
|
"description": "This string must be a string",
|
||||||
"type": "string",
|
"type": "string"
|
||||||
},
|
},
|
||||||
"int": {
|
"int": {
|
||||||
"description": "This int must be an int",
|
"description": "This int must be an int",
|
||||||
"type": "integer",
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"array": {
|
"array": {
|
||||||
"description": "This array must be an array of int",
|
"description": "This array must be an array of int",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"description": "This is an int in an array",
|
"description": "This is an int in an array",
|
||||||
"type": "integer",
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"object": {
|
"object": {
|
||||||
@ -66,7 +66,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"description": "this is a string in an object",
|
"description": "this is a string in an object",
|
||||||
"type": "string",
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"primitive": {
|
"primitive": {
|
||||||
|
Loading…
Reference in New Issue
Block a user