Skip to content

Commit

Permalink
chore: improve ooo reason documentation apiv2 (#18582)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThyMinimalDev authored Jan 10, 2025
1 parent 95f9a02 commit dabd3b0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
1 change: 1 addition & 0 deletions apps/api/v2/src/modules/ooo/inputs/ooo.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class CreateOutOfOfficeEntryDto {
@ApiPropertyOptional({
description: "the reason for the out of office entry, if applicable",
example: "vacation",
enum: OutOfOfficeReason,
})
reason?: OutOfOfficeReasonType;
}
Expand Down
1 change: 1 addition & 0 deletions apps/api/v2/src/modules/ooo/outputs/ooo.output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export class UserOooOutputDto {
@ApiPropertyOptional({
description: "the reason for the out of office entry, if applicable",
example: "vacation",
enum: OutOfOfficeReason,
})
@Expose()
reason?: OutOfOfficeReason;
Expand Down
22 changes: 18 additions & 4 deletions apps/api/v2/swagger/documentation.json
Original file line number Diff line number Diff line change
Expand Up @@ -13620,9 +13620,16 @@
"example": 2
},
"reason": {
"type": "object",
"type": "string",
"description": "the reason for the out of office entry, if applicable",
"example": "vacation"
"example": "vacation",
"enum": [
"unspecified",
"vacation",
"travel",
"sick",
"public_holiday"
]
}
},
"required": [
Expand Down Expand Up @@ -13656,9 +13663,16 @@
"example": 2
},
"reason": {
"type": "object",
"type": "string",
"description": "the reason for the out of office entry, if applicable",
"example": "vacation"
"example": "vacation",
"enum": [
"unspecified",
"vacation",
"travel",
"sick",
"public_holiday"
]
}
}
},
Expand Down
10 changes: 6 additions & 4 deletions docs/api-reference/v2/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -12315,9 +12315,10 @@
"example": 2
},
"reason": {
"type": "object",
"type": "string",
"description": "the reason for the out of office entry, if applicable",
"example": "vacation"
"example": "vacation",
"enum": ["unspecified", "vacation", "travel", "sick", "public_holiday"]
}
},
"required": ["start", "end"]
Expand Down Expand Up @@ -12348,9 +12349,10 @@
"example": 2
},
"reason": {
"type": "object",
"type": "string",
"description": "the reason for the out of office entry, if applicable",
"example": "vacation"
"example": "vacation",
"enum": ["unspecified", "vacation", "travel", "sick", "public_holiday"]
}
}
},
Expand Down

0 comments on commit dabd3b0

Please sign in to comment.