We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e67cf2 + 6e21226 commit 7020737Copy full SHA for 7020737
api/nvidia.com/resource/v1beta1/api.go
@@ -69,7 +69,14 @@ func init() {
69
scheme,
70
71
json.SerializerOptions{
72
- Pretty: true, Strict: true,
+ // Note: the strictness applies to all types defined above via
73
+ // AddKnownTypes(), i.e. it cannot be set per-type. That is OK in
74
+ // this case. Unknown fields will simply be dropped (ignored) upon
75
+ // decode, which is what we want. This is relevant in a downgrade
76
+ // case, when a checkpointed JSON document contains fields added in
77
+ // a later version (workload defined with a new version of this
78
+ // driver).
79
+ Pretty: true, Strict: false,
80
},
81
)
82
}
0 commit comments