mirror of https://github.com/k3s-io/k3s
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 ```pull/6/head
commit
2b530438f1
|
@ -12,7 +12,7 @@
|
|||
"OneKind": {
|
||||
"description": "OneKind has a short description",
|
||||
"required": [
|
||||
"field1",
|
||||
"field1"
|
||||
],
|
||||
"properties": {
|
||||
"field1": {
|
||||
|
@ -42,23 +42,23 @@
|
|||
"OtherKind": {
|
||||
"description": "This is another kind of Kind",
|
||||
"required": [
|
||||
"string",
|
||||
"string"
|
||||
],
|
||||
"properties": {
|
||||
"string": {
|
||||
"description": "This string must be a string",
|
||||
"type": "string",
|
||||
"type": "string"
|
||||
},
|
||||
"int": {
|
||||
"description": "This int must be an int",
|
||||
"type": "integer",
|
||||
"type": "integer"
|
||||
},
|
||||
"array": {
|
||||
"description": "This array must be an array of int",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"description": "This is an int in an array",
|
||||
"type": "integer",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"object": {
|
||||
|
@ -66,7 +66,7 @@
|
|||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"description": "this is a string in an object",
|
||||
"type": "string",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"primitive": {
|
||||
|
|
Loading…
Reference in New Issue