Skip to content

Commit

Permalink
oneOf types for Quantity
Browse files Browse the repository at this point in the history
Kubernetes-commit: e5dd75dccf7f1a91879757d5ebab25fe3ee521c3
  • Loading branch information
jiahuif authored and k8s-publishing-bot committed Mar 22, 2022
1 parent 1992dcc commit 7b6c37e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/api/resource/quantity.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ func (_ Quantity) OpenAPISchemaType() []string { return []string{"string"} }
// the OpenAPI spec of this type.
func (_ Quantity) OpenAPISchemaFormat() string { return "" }

// OpenAPIV3OneOfTypes is used by the kube-openapi generator when constructing
// the OpenAPI v3 spec of this type.
func (Quantity) OpenAPIV3OneOfTypes() []string { return []string{"string", "number"} }

// CanonicalizeBytes returns the canonical form of q and its suffix (see comment on Quantity).
//
// Note about BinarySI:
Expand Down

0 comments on commit 7b6c37e

Please sign in to comment.