Skip to content

Commit 2f5468f

Browse files
committed
update map keys api doc with validation requirements
1 parent 7587ab3 commit 2f5468f

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

api/openapi-spec/swagger.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/generated.proto

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ type JSONSchemaProps struct {
126126
// extension set to "map". Also, the values specified for this attribute must
127127
// be a scalar typed field of the child structure (no nesting is supported).
128128
//
129+
// The properties specified must either be required or have a default value,
130+
// to ensure those properties are present for all list items.
131+
//
129132
// +optional
130133
XListMapKeys []string `json:"x-kubernetes-list-map-keys,omitempty" protobuf:"bytes,41,rep,name=xKubernetesListMapKeys"`
131134

staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/types_jsonschema.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ type JSONSchemaProps struct {
126126
// extension set to "map". Also, the values specified for this attribute must
127127
// be a scalar typed field of the child structure (no nesting is supported).
128128
//
129+
// The properties specified must either be required or have a default value,
130+
// to ensure those properties are present for all list items.
131+
//
129132
// +optional
130133
XListMapKeys []string `json:"x-kubernetes-list-map-keys,omitempty" protobuf:"bytes,41,rep,name=xKubernetesListMapKeys"`
131134

0 commit comments

Comments
 (0)