chore: improve ooo reason documentation apiv2 (#18582)

This commit is contained in:
Morgan
2025-01-10 13:20:39 +00:00
committed by GitHub
parent 95f9a02d29
commit dabd3b0fc3
4 changed files with 26 additions and 8 deletions
@@ -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;
}
@@ -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;
+18 -4
View File
@@ -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": [
@@ -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"
]
}
}
},
+6 -4
View File
@@ -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"]
@@ -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"]
}
}
},