mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
oneOf types for Quantity
This commit is contained in:
parent
16fe367389
commit
e5dd75dccf
@ -397,6 +397,10 @@ func (_ Quantity) OpenAPISchemaType() []string { return []string{"string"} }
|
|||||||
// the OpenAPI spec of this type.
|
// the OpenAPI spec of this type.
|
||||||
func (_ Quantity) OpenAPISchemaFormat() string { return "" }
|
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).
|
// CanonicalizeBytes returns the canonical form of q and its suffix (see comment on Quantity).
|
||||||
//
|
//
|
||||||
// Note about BinarySI:
|
// Note about BinarySI:
|
||||||
|
Loading…
Reference in New Issue
Block a user