See the comment in tools.go, I cannot fully explain what's happening here. Somehow, Go 1.14 wants to use the vendored version of oapi-codegen but without this file, oapi-codegen isn't vendored so the generation fails. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
15 lines
298 B
Go
15 lines
298 B
Go
package openapi3
|
|
|
|
import "context"
|
|
|
|
// Callback is specified by OpenAPI/Swagger standard version 3.0.
|
|
type Callback map[string]*PathItem
|
|
|
|
func (value Callback) Validate(c context.Context) error {
|
|
for _, v := range value {
|
|
if err := v.Validate(c); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|