-
Notifications
You must be signed in to change notification settings - Fork 2
/
link_accessors_gen.go
59 lines (45 loc) · 1.05 KB
/
link_accessors_gen.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
48
49
50
51
52
53
54
55
56
57
58
59
package openapi
// This file was automatically generated.
// DO NOT EDIT MANUALLY. All changes will be lost
import (
"context"
"github.com/pkg/errors"
)
var _ = errors.Cause
var _ = context.Background
func (v *link) Name() string {
return v.name
}
func (v *link) OperationRef() string {
return v.operationRef
}
func (v *link) OperationID() string {
return v.operationID
}
func (v *link) Parameters() *InterfaceMapIterator {
var items []interface{}
for key, item := range v.parameters {
items = append(items, &mapIteratorItem{key: key, item: item})
}
var iter InterfaceMapIterator
iter.list.items = items
return &iter
}
func (v *link) RequestBody() interface{} {
return v.requestBody
}
func (v *link) Description() string {
return v.description
}
func (v *link) Server() Server {
return v.server
}
func (v *link) Reference() string {
return v.reference
}
func (v *link) IsUnresolved() bool {
return v.reference != "" && !v.resolved
}
func (v *link) Validate(recurse bool) error {
return Visit(context.Background(), newValidator(recurse), v)
}