forked from forgejo/forgejo
[Vendor] update go-swagger v0.21.0 -> v0.25.0 (#12670)
* Update go-swagger * vendor
This commit is contained in:
parent
66843f2237
commit
3270e7a443
350 changed files with 26353 additions and 5552 deletions
13
vendor/github.com/go-openapi/strfmt/README.md
generated
vendored
13
vendor/github.com/go-openapi/strfmt/README.md
generated
vendored
|
@ -43,6 +43,19 @@ It also provides convenient extensions to go-openapi users.
|
|||
> It does not provide validation for numerical values with swagger format extension for JSON types "number" or
|
||||
> "integer" (e.g. float, double, int32...).
|
||||
|
||||
## Type conversion
|
||||
|
||||
All types defined here are stringers and may be converted to strings with `.String()`.
|
||||
Note that most types defined by this package may be converted directly to string like `string(Email{})`.
|
||||
|
||||
`Date` and `DateTime` may be converted directly to `time.Time` like `time.Time(Time{})`.
|
||||
Similarly, you can convert `Duration` to `time.Duration` as in `time.Duration(Duration{})`
|
||||
|
||||
## Using pointers
|
||||
|
||||
The `conv` subpackage provides helpers to convert the types to and from pointers, just like `go-openapi/swag` does
|
||||
with primitive types.
|
||||
|
||||
## Format types
|
||||
Types defined in strfmt expose marshaling and validation capabilities.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue