-
Notifications
You must be signed in to change notification settings - Fork 12
/
model_foo.go
41 lines (36 loc) · 1001 Bytes
/
model_foo.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
// Code generated by openapi-generator-go DO NOT EDIT.
//
// Source:
//
// Title: Test
// Version: 0.1.0
package generatortest
import (
validation "github.com/go-ozzo/ozzo-validation/v4"
)
// Foo is an object.
type Foo struct {
// Bar:
Bar *struct {
Bar string `json:"bar,omitempty" mapstructure:"bar,omitempty"`
Foo string `json:"foo,omitempty" mapstructure:"foo,omitempty"`
} `json:"bar,omitempty" mapstructure:"bar,omitempty"`
}
// Validate implements basic validation for this model
func (m Foo) Validate() error {
return validation.Errors{}.Filter()
}
// GetBar returns the Bar property
func (m Foo) GetBar() *struct {
Bar string `json:"bar,omitempty" mapstructure:"bar,omitempty"`
Foo string `json:"foo,omitempty" mapstructure:"foo,omitempty"`
} {
return m.Bar
}
// SetBar sets the Bar property
func (m *Foo) SetBar(val *struct {
Bar string `json:"bar,omitempty" mapstructure:"bar,omitempty"`
Foo string `json:"foo,omitempty" mapstructure:"foo,omitempty"`
}) {
m.Bar = val
}