Skip to content

Commit

Permalink
[#124] makes "subject" required when creating an email template
Browse files Browse the repository at this point in the history
  • Loading branch information
philherbert committed Sep 17, 2020
1 parent 491d4e6 commit 0f44841
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion documents/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTemplateRequest'
oneOf:
- $ref: '#/components/schemas/CreateTemplateRequestSms'
- $ref: '#/components/schemas/CreateTemplateRequestEmail'
responses:
'201':
description: CREATED
Expand Down Expand Up @@ -1227,6 +1229,26 @@ components:
- content
- service
- created_by
CreateTemplateRequestSms:
type: object
allOf:
- $ref: '#/components/schemas/CreateTemplateRequest'
properties:
template_type:
type: string
enum:
- sms
CreateTemplateRequestEmail:
type: object
allOf:
- $ref: '#/components/schemas/CreateTemplateRequestSms'
properties:
template_type:
type: string
enum:
- email
required:
- subject
Template:
type: object
allOf:
Expand Down

0 comments on commit 0f44841

Please sign in to comment.