We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c9920c commit 495de0bCopy full SHA for 495de0b
interfaces.go
@@ -15,6 +15,7 @@
15
package runtime
16
17
import (
18
+ "context"
19
"io"
20
"net/http"
21
@@ -101,3 +102,11 @@ type Authorizer interface {
101
102
type Validatable interface {
103
Validate(strfmt.Registry) error
104
}
105
+
106
+// ContextValidatable types implementing this interface allow customizing their validation
107
+// this will be used instead of the reflective validation based on the spec document.
108
+// the implementations are assumed to have been generated by the swagger tool so they should
109
+// contain all the context validations obtained from the spec
110
+type ContextValidatable interface {
111
+ ContextValidate(context.Context, strfmt.Registry) error
112
+}
0 commit comments