forked from go-swagger/go-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_type.go
47 lines (32 loc) · 1.12 KB
/
my_type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package models
import (
"context"
"io"
"github.com/go-openapi/strfmt"
)
// MyType is a type manually added to the models package (NOT GENERATED)
type MyType string
// Validate MyType
func (MyType) Validate(strfmt.Registry) error { return nil }
// ContextValidate MyType
func (MyType) ContextValidate(context.Context, strfmt.Registry) error { return nil }
// MyInteger ...
type MyInteger int
// Validate MyInteger
func (MyInteger) Validate(strfmt.Registry) error { return nil }
// ContextValidate MyInteger
func (MyInteger) ContextValidate(context.Context, strfmt.Registry) error { return nil }
// MyString ...
type MyString string
// Validate MyString
func (MyString) Validate(strfmt.Registry) error { return nil }
// ContextValidate MyInteger
func (MyString) ContextValidate(context.Context, strfmt.Registry) error { return nil }
// MyOtherType ...
type MyOtherType struct{}
// Validate MyOtherType
func (MyOtherType) Validate(strfmt.Registry) error { return nil }
// ContextValidate MyOtherType
func (MyOtherType) ContextValidate(context.Context, strfmt.Registry) error { return nil }
// MyStreamer ...
type MyStreamer io.Reader