File tree 4 files changed +48
-13
lines changed
4 files changed +48
-13
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ import (
12
12
)
13
13
14
14
type (
15
- TemplateType string
16
-
17
15
EmailTemplate interface {
18
16
json.Marshaler
19
17
EmailSubject (context.Context ) (string , error )
@@ -23,6 +21,11 @@ type (
23
21
}
24
22
)
25
23
24
+ // A Template's type
25
+ //
26
+ // swagger:enum TemplateType
27
+ type TemplateType string
28
+
26
29
const (
27
30
TypeRecoveryInvalid TemplateType = "recovery_invalid"
28
31
TypeRecoveryValid TemplateType = "recovery_valid"
Original file line number Diff line number Diff line change @@ -3649,8 +3649,6 @@ components:
3649
3649
title : RecoveryAddressType must not exceed 16 characters as that is the limitation
3650
3650
in the SQL Schema.
3651
3651
type : string
3652
- TemplateType :
3653
- type : string
3654
3652
Time :
3655
3653
format : date-time
3656
3654
type : string
@@ -4297,7 +4295,7 @@ components:
4297
4295
recipient : recipient
4298
4296
created_at : 2000-01-23T04:56:07.000+00:00
4299
4297
send_count : 0
4300
- template_type : template_type
4298
+ template_type : recovery_invalid
4301
4299
id : 046b6c7f-0b8a-43b9-b35d-6489e6daee91
4302
4300
body : body
4303
4301
properties :
@@ -4320,7 +4318,25 @@ components:
4320
4318
subject :
4321
4319
type : string
4322
4320
template_type :
4321
+ enum :
4322
+ - recovery_invalid
4323
+ - recovery_valid
4324
+ - recovery_code_invalid
4325
+ - recovery_code_valid
4326
+ - verification_invalid
4327
+ - verification_valid
4328
+ - otp
4329
+ - stub
4323
4330
type : string
4331
+ x-go-enum-desc : |-
4332
+ recovery_invalid TypeRecoveryInvalid
4333
+ recovery_valid TypeRecoveryValid
4334
+ recovery_code_invalid TypeRecoveryCodeInvalid
4335
+ recovery_code_valid TypeRecoveryCodeValid
4336
+ verification_invalid TypeVerificationInvalid
4337
+ verification_valid TypeVerificationValid
4338
+ otp TypeOTP
4339
+ stub TypeTestStub
4324
4340
type :
4325
4341
$ref : ' #/components/schemas/courierMessageType'
4326
4342
updated_at :
Original file line number Diff line number Diff line change 330
330
"title" : " RecoveryAddressType must not exceed 16 characters as that is the limitation in the SQL Schema." ,
331
331
"type" : " string"
332
332
},
333
- "TemplateType" : {
334
- "type" : " string"
335
- },
336
333
"Time" : {
337
334
"format" : " date-time" ,
338
335
"type" : " string"
940
937
"type" : " string"
941
938
},
942
939
"template_type" : {
943
- "$ref" : " #/components/schemas/TemplateType"
940
+ "enum" : [
941
+ " recovery_invalid" ,
942
+ " recovery_valid" ,
943
+ " recovery_code_invalid" ,
944
+ " recovery_code_valid" ,
945
+ " verification_invalid" ,
946
+ " verification_valid" ,
947
+ " otp" ,
948
+ " stub"
949
+ ],
950
+ "type" : " string" ,
951
+ "x-go-enum-desc" : " recovery_invalid TypeRecoveryInvalid\n recovery_valid TypeRecoveryValid\n recovery_code_invalid TypeRecoveryCodeInvalid\n recovery_code_valid TypeRecoveryCodeValid\n verification_invalid TypeVerificationInvalid\n verification_valid TypeVerificationValid\n otp TypeOTP\n stub TypeTestStub"
944
952
},
945
953
"type" : {
946
954
"$ref" : " #/components/schemas/courierMessageType"
Original file line number Diff line number Diff line change 3059
3059
"type" : " string" ,
3060
3060
"title" : " RecoveryAddressType must not exceed 16 characters as that is the limitation in the SQL Schema."
3061
3061
},
3062
- "TemplateType" : {
3063
- "type" : " string"
3064
- },
3065
3062
"UUID" : {"type" : " string" , "format" : " uuid4" },
3066
3063
"adminCreateIdentityBody" : {
3067
3064
"type" : " object" ,
3641
3638
"type" : " string"
3642
3639
},
3643
3640
"template_type" : {
3644
- "$ref" : " #/definitions/TemplateType"
3641
+ "type" : " string" ,
3642
+ "enum" : [
3643
+ " recovery_invalid" ,
3644
+ " recovery_valid" ,
3645
+ " recovery_code_invalid" ,
3646
+ " recovery_code_valid" ,
3647
+ " verification_invalid" ,
3648
+ " verification_valid" ,
3649
+ " otp" ,
3650
+ " stub"
3651
+ ],
3652
+ "x-go-enum-desc" : " recovery_invalid TypeRecoveryInvalid\n recovery_valid TypeRecoveryValid\n recovery_code_invalid TypeRecoveryCodeInvalid\n recovery_code_valid TypeRecoveryCodeValid\n verification_invalid TypeVerificationInvalid\n verification_valid TypeVerificationValid\n otp TypeOTP\n stub TypeTestStub"
3645
3653
},
3646
3654
"type" : {
3647
3655
"$ref" : " #/definitions/courierMessageType"
You can’t perform that action at this time.
0 commit comments