Skip to content

Commit 38b18b3

Browse files
committed
test/integration: update golden files with populated struct defaults
Regenerate v2 and v3 golden JSON to reflect non-empty default values for OtherSub, listtype.Item, and DeclaredAtomicStruct. Signed-off-by: Arthur Diniz <arthurbd@debian.org>
1 parent fd22e01 commit 38b18b3

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

test/integration/testdata/golden.v2.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,9 @@
791791
"default": 0
792792
},
793793
"OtherSub": {
794-
"default": {},
794+
"default": {
795+
"S": ""
796+
},
795797
"$ref": "#/definitions/defaults.SubStruct"
796798
},
797799
"Sub": {
@@ -1082,7 +1084,9 @@
10821084
],
10831085
"properties": {
10841086
"Field": {
1085-
"default": {},
1087+
"default": {
1088+
"Field": 0
1089+
},
10861090
"$ref": "#/definitions/structtype.DeclaredAtomicStruct",
10871091
"x-kubernetes-map-type": "atomic"
10881092
},

test/integration/testdata/golden.v3.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,9 @@
729729
"default": 0
730730
},
731731
"OtherSub": {
732-
"default": {},
732+
"default": {
733+
"S": ""
734+
},
733735
"allOf": [
734736
{
735737
"$ref": "#/components/schemas/defaults.SubStruct"
@@ -1032,7 +1034,9 @@
10321034
],
10331035
"properties": {
10341036
"Field": {
1035-
"default": {},
1037+
"default": {
1038+
"Field": 0
1039+
},
10361040
"allOf": [
10371041
{
10381042
"$ref": "#/components/schemas/structtype.DeclaredAtomicStruct"

0 commit comments

Comments
 (0)