forked from ogen-go/ent2ogen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ent2ogen_checks.go
57 lines (52 loc) · 1.3 KB
/
ent2ogen_checks.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
// Code generated by ent, DO NOT EDIT.
package ent
import (
openapi "github.com/ogen-go/ent2ogen/example/api"
"github.com/ogen-go/ent2ogen/example/ent/keycapmodel"
"github.com/ogen-go/ent2ogen/example/ent/switchmodel"
)
func _() {
_ = struct {
ID int64
Name string
Switches openapi.Switches
Keycaps openapi.Keycaps
Price int64
Discount openapi.NilInt64
}(openapi.Keyboard{})
}
func _() {
_ = struct {
ID int64
Name string
Profile string
Material openapi.KeycapsMaterial
}(openapi.Keycaps{})
_ = map[bool]struct{}{
string(openapi.KeycapsMaterialABS) == string(keycapmodel.MaterialABS): {},
false: {},
}
_ = map[bool]struct{}{
string(openapi.KeycapsMaterialPBT) == string(keycapmodel.MaterialPBT): {},
false: {},
}
}
func _() {
_ = struct {
ID int64
Name string
SwitchType openapi.SwitchesSwitchType
}(openapi.Switches{})
_ = map[bool]struct{}{
string(openapi.SwitchesSwitchTypeMechanical) == string(switchmodel.SwitchTypeMechanical): {},
false: {},
}
_ = map[bool]struct{}{
string(openapi.SwitchesSwitchTypeOptical) == string(switchmodel.SwitchTypeOptical): {},
false: {},
}
_ = map[bool]struct{}{
string(openapi.SwitchesSwitchTypeElectrocapacitive) == string(switchmodel.SwitchTypeElectrocapacitive): {},
false: {},
}
}