mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] Bump go swagger (#2871)
* bump go swagger version * bump swagger version
This commit is contained in:
21
vendor/github.com/go-openapi/validate/options.go
generated
vendored
21
vendor/github.com/go-openapi/validate/options.go
generated
vendored
@ -21,10 +21,29 @@ import "sync"
|
||||
// NOTE: other options might be needed, for example a go-swagger specific mode.
|
||||
type Opts struct {
|
||||
ContinueOnErrors bool // true: continue reporting errors, even if spec is invalid
|
||||
|
||||
// StrictPathParamUniqueness enables a strict validation of paths that include
|
||||
// path parameters. When true, it will enforce that for each method, the path
|
||||
// is unique, regardless of path parameters such that GET:/petstore/{id} and
|
||||
// GET:/petstore/{pet} anre considered duplicate paths.
|
||||
//
|
||||
// Consider disabling if path parameters can include slashes such as
|
||||
// GET:/v1/{shelve} and GET:/v1/{book}, where the IDs are "shelve/*" and
|
||||
// /"shelve/*/book/*" respectively.
|
||||
StrictPathParamUniqueness bool
|
||||
SkipSchemataResult bool
|
||||
}
|
||||
|
||||
var (
|
||||
defaultOpts = Opts{ContinueOnErrors: false} // default is to stop validation on errors
|
||||
defaultOpts = Opts{
|
||||
// default is to stop validation on errors
|
||||
ContinueOnErrors: false,
|
||||
|
||||
// StrictPathParamUniqueness is defaulted to true. This maintains existing
|
||||
// behavior.
|
||||
StrictPathParamUniqueness: true,
|
||||
}
|
||||
|
||||
defaultOptsMutex = &sync.Mutex{}
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user