Fix CRD validation error for 'items' field
Signed-off-by: He Xiaoxi <xxhe@alauda.io>
This commit is contained in:
10
vendor/github.com/go-openapi/strfmt/README.md
generated
vendored
10
vendor/github.com/go-openapi/strfmt/README.md
generated
vendored
@@ -10,7 +10,7 @@ This package exposes a registry of data types to support string formats in the g
|
||||
strfmt represents a well known string format such as credit card or email. The go toolkit for OpenAPI specifications knows how to deal with those.
|
||||
|
||||
## Supported data formats
|
||||
go-openapi/strfmt follows the swagger 2.0 specification with the following formats
|
||||
go-openapi/strfmt follows the swagger 2.0 specification with the following formats
|
||||
defined [here](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types).
|
||||
|
||||
It also provides convenient extensions to go-openapi users.
|
||||
@@ -37,12 +37,13 @@ It also provides convenient extensions to go-openapi users.
|
||||
- rgbcolor (e.g. "rgb(100,100,100)")
|
||||
- ssn
|
||||
- uuid, uuid3, uuid4, uuid5
|
||||
- cidr (e.g. "192.0.2.1/24", "2001:db8:a0b:12f0::1/32")
|
||||
|
||||
> NOTE: as the name stands for, this package is intended to support string formatting only.
|
||||
> It does not provide validation for numerical values with swagger format extension for JSON types "number" or
|
||||
> NOTE: as the name stands for, this package is intended to support string formatting only.
|
||||
> It does not provide validation for numerical values with swagger format extension for JSON types "number" or
|
||||
> "integer" (e.g. float, double, int32...).
|
||||
|
||||
## Format types
|
||||
## Format types
|
||||
Types defined in strfmt expose marshaling and validation capabilities.
|
||||
|
||||
List of defined types:
|
||||
@@ -56,6 +57,7 @@ List of defined types:
|
||||
- Hostname
|
||||
- IPv4
|
||||
- IPv6
|
||||
- CIDR
|
||||
- ISBN
|
||||
- ISBN10
|
||||
- ISBN13
|
||||
|
||||
Reference in New Issue
Block a user