-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoverlay.yml
116 lines (94 loc) · 3.48 KB
/
overlay.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
overlay: 1.0.0
info:
title: "passage-go-specific codegen updates via the OpenAPI Overlay specification (https://github.com/OAI/Overlay-Specification)"
version: 1.0.0
actions:
# rename types
- target: $.components.schemas.CreateUserRequest
description: Rename the generated Go type name
update:
x-go-name: CreateUserArgs
- target: $.components.schemas.UpdateUserRequest
description: Rename the generated Go type name
update:
x-go-name: UpdateUserOptions
- target: $.components.schemas.ListPaginatedUsersResponse
description: Rename the generated Go type name
update:
x-go-name: PaginatedUsersResponse
- target: $.components.schemas.UserInfo
description: Rename the generated Go type name
update:
x-go-name: PassageUser
- target: $.components.schemas.MagicLinkChannel
description: Rename the generated Go type name
update:
x-go-name: ChannelType
- target: $.components.schemas.CreateMagicLinkRequest
description: Rename the generated Go type name and make it private
update:
x-go-name: magicLinkArgs
- target: $.components.schemas.ListPaginatedUsersResponse
description: Rename the generated Go type name and make it private
update:
x-go-name: paginatedUsersResponse
# rename enums
- target: $.components.schemas.UserStatus
description: Rename the generated Go enum name
update:
x-enumNames:
- StatusActive
- StatusInactive
- StatusPending
- target: $.components.schemas.MagicLinkType
description: Rename the generated Go enum name
update:
x-enumNames:
- LoginType
- VerifyIdentifierType
- target: $.components.schemas.MagicLinkChannel
description: Rename the generated Go enum name
update:
x-enumNames:
- EmailChannel
- PhoneChannel
- target: $.components.schemas.UserEventAction
description: Rename the generated Go enum name
update:
x-enumNames:
- UserEventActionRegister
- UserEventActionLogin
- UserEventActionOther
# skip optional pointers
- target: $.components.schemas.CreateUserRequest.properties.*
description: Don't use pointers for optional properties in the generated Go type
update:
x-go-type-skip-optional-pointer: true
- target: $.components.schemas.UpdateUserRequest.properties.*
description: Don't use pointers for optional properties in the generated Go type
update:
x-go-type-skip-optional-pointer: true
- target: $.components.schemas.CreateMagicLinkRequest.properties.*
description: Don't use pointers for optional properties in the generated Go type
update:
x-go-type-skip-optional-pointer: true
- target: $.components.schemas.MagicLinkType
description: Don't use pointers for optional properties in the generated Go type
update:
x-go-type-skip-optional-pointer: true
- target: $.components.schemas.MagicLinkChannel
description: Don't use pointers for optional properties in the generated Go type
update:
x-go-type-skip-optional-pointer: true
- target: $.components.schemas.MagicLinkLanguage
description: Don't use pointers for optional properties in the generated Go type
update:
x-go-type-skip-optional-pointer: true
- target: $.components.schemas.UserInfo.properties.user_metadata
description: Don't use pointers for optional properties in the generated Go type
update:
x-go-type-skip-optional-pointer: true
- target: $.components.schemas.UserInfo.properties.webauthn_types
description: Don't use pointers for optional properties in the generated Go type
update:
x-go-type-skip-optional-pointer: true