fix: add involves edge from task to agent:nomos at creation
Plus sync vendor directory for Docker build compatibility.
This commit is contained in:
20
vendor/github.com/getkin/kin-openapi/openapi3/example_validation.go
generated
vendored
Normal file
20
vendor/github.com/getkin/kin-openapi/openapi3/example_validation.go
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
package openapi3
|
||||
|
||||
import "context"
|
||||
|
||||
func validateExampleValue(ctx context.Context, input any, schema *Schema) error {
|
||||
opts := []SchemaValidationOption{MultiErrors()}
|
||||
|
||||
vo := getValidationOptions(ctx)
|
||||
if vo.examplesValidationAsReq {
|
||||
opts = append(opts, VisitAsRequest())
|
||||
} else if vo.examplesValidationAsRes {
|
||||
opts = append(opts, VisitAsResponse())
|
||||
}
|
||||
|
||||
if vo.jsonSchema2020ValidationEnabled {
|
||||
opts = append(opts, EnableJSONSchema2020())
|
||||
}
|
||||
|
||||
return schema.VisitJSON(input, opts...)
|
||||
}
|
||||
Reference in New Issue
Block a user