Skip to content

Commit

Permalink
feat: Add null value for approver_emails
Browse files Browse the repository at this point in the history
  • Loading branch information
RoshanMhatre committed Oct 9, 2023
1 parent 57c12c2 commit 6bc0db6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1704,14 +1704,15 @@ components:
approver_emails:
type: array
maxItems: 3
nullable: true
nullable: false
items:
$ref: '#/components/schemas/email'
example:
- [email protected]
- [email protected]
- null
description: |
List of emails of employees that are approvers for this employee.
List of emails of employees that are approvers for this employee. Use null in case of no approver or to remove the approver.
project_names:
type: array
nullable: true
Expand Down Expand Up @@ -1785,7 +1786,7 @@ components:
delegatee_emails:
type: array
maxItems: 1
nullable: False
nullable: false
items:
$ref: '#/components/schemas/email'
example: [ '[email protected]' ]
Expand Down Expand Up @@ -11368,7 +11369,7 @@ paths:
application/json:
schema:
type: object
additionalProperties: False
additionalProperties: false
properties:
data:
type: array
Expand Down
6 changes: 3 additions & 3 deletions src/components/schemas/invitation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ invitation_in:
approver_emails:
type: array
maxItems: 3
nullable: True
nullable: False
items:
$ref: './fields.yaml#/email'
example: [ '[email protected]', '[email protected]' ]
example: [ '[email protected]', '[email protected]', null ]
description: |
List of emails of employees that are approvers for this employee.
List of emails of employees that are approvers for this employee. Use null in case of no approver or to remove the approver.
project_names:
type: array
Expand Down

0 comments on commit 6bc0db6

Please sign in to comment.