Skip to content

Commit 0b2e70a

Browse files
committed
test/integration: regenerate golden v2 and v3 JSON files
Signed-off-by: Arthur Diniz <arthurbd@debian.org>
1 parent 6fac225 commit 0b2e70a

2 files changed

Lines changed: 20 additions & 14 deletions

File tree

test/integration/testdata/golden.v2.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,9 @@
793793
"default": 0
794794
},
795795
"OtherSub": {
796-
"default": {},
796+
"default": {
797+
"S": ""
798+
},
797799
"$ref": "#/definitions/defaults.SubStruct"
798800
},
799801
"Sub": {
@@ -987,7 +989,10 @@
987989
"Field": {
988990
"type": "array",
989991
"items": {
990-
"default": {},
992+
"default": {
993+
"Port": 0,
994+
"Protocol": ""
995+
},
991996
"$ref": "#/definitions/listtype.Item"
992997
},
993998
"x-kubernetes-list-map-keys": [
@@ -1089,7 +1094,9 @@
10891094
],
10901095
"properties": {
10911096
"Field": {
1092-
"default": {},
1097+
"default": {
1098+
"Field": 0
1099+
},
10931100
"$ref": "#/definitions/structtype.DeclaredAtomicStruct",
10941101
"x-kubernetes-map-type": "atomic"
10951102
},
@@ -1224,8 +1231,6 @@
12241231
"maxProperties": 5,
12251232
"minProperties": 1,
12261233
"required": [
1227-
"StringValue",
1228-
"NumberValue",
12291234
"ArrayValue",
12301235
"MapValue"
12311236
],
@@ -1252,7 +1257,6 @@
12521257
"NumberValue": {
12531258
"type": "number",
12541259
"format": "double",
1255-
"default": 0,
12561260
"maximum": 5,
12571261
"exclusiveMaximum": true,
12581262
"minimum": 1,
@@ -1261,7 +1265,6 @@
12611265
},
12621266
"StringValue": {
12631267
"type": "string",
1264-
"default": "",
12651268
"maxLength": 5,
12661269
"minLength": 1,
12671270
"pattern": "^a.*b$"

test/integration/testdata/golden.v3.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,9 @@
731731
"default": 0
732732
},
733733
"OtherSub": {
734-
"default": {},
734+
"default": {
735+
"S": ""
736+
},
735737
"allOf": [
736738
{
737739
"$ref": "#/components/schemas/defaults.SubStruct"
@@ -933,7 +935,10 @@
933935
"Field": {
934936
"type": "array",
935937
"items": {
936-
"default": {},
938+
"default": {
939+
"Port": 0,
940+
"Protocol": ""
941+
},
937942
"allOf": [
938943
{
939944
"$ref": "#/components/schemas/listtype.Item"
@@ -1043,7 +1048,9 @@
10431048
],
10441049
"properties": {
10451050
"Field": {
1046-
"default": {},
1051+
"default": {
1052+
"Field": 0
1053+
},
10471054
"allOf": [
10481055
{
10491056
"$ref": "#/components/schemas/structtype.DeclaredAtomicStruct"
@@ -1186,8 +1193,6 @@
11861193
"maxProperties": 5,
11871194
"minProperties": 1,
11881195
"required": [
1189-
"StringValue",
1190-
"NumberValue",
11911196
"ArrayValue",
11921197
"MapValue"
11931198
],
@@ -1214,7 +1219,6 @@
12141219
"NumberValue": {
12151220
"type": "number",
12161221
"format": "double",
1217-
"default": 0,
12181222
"maximum": 5,
12191223
"exclusiveMaximum": true,
12201224
"minimum": 1,
@@ -1223,7 +1227,6 @@
12231227
},
12241228
"StringValue": {
12251229
"type": "string",
1226-
"default": "",
12271230
"maxLength": 5,
12281231
"minLength": 1,
12291232
"pattern": "^a.*b$"

0 commit comments

Comments
 (0)