Skip to content

Commit

Permalink
chore: create event-type input lengthInMinutesOptions (#19114)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThyMinimalDev authored Feb 5, 2025
1 parent 510e73b commit 5f89783
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
2 changes: 0 additions & 2 deletions apps/api/v2/swagger/documentation.json
Original file line number Diff line number Diff line change
Expand Up @@ -8692,7 +8692,6 @@
},
"required": [
"lengthInMinutes",
"lengthInMinutesOptions",
"title",
"slug"
]
Expand Down Expand Up @@ -12186,7 +12185,6 @@
},
"required": [
"lengthInMinutes",
"lengthInMinutesOptions",
"title",
"slug",
"schedulingType",
Expand Down
22 changes: 20 additions & 2 deletions docs/api-reference/v2/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,15 @@
"schema": {
"type": "string"
}
},
{
"name": "hostsLimit",
"required": false,
"in": "query",
"description": "Specifies the maximum number of hosts to include in the response. This limit helps optimize performance. If not provided, all Hosts will be fetched.",
"schema": {
"type": "number"
}
}
],
"responses": {
Expand Down Expand Up @@ -5741,6 +5750,15 @@
"schema": {
"type": "string"
}
},
{
"name": "hostsLimit",
"required": false,
"in": "query",
"description": "Specifies the maximum number of hosts to include in the response. This limit helps optimize performance. If not provided, all Hosts will be fetched.",
"schema": {
"type": "number"
}
}
],
"responses": {
Expand Down Expand Up @@ -8027,7 +8045,7 @@
"example": "https://masterchief.com/argentina/flan/video/9129412"
}
},
"required": ["lengthInMinutes", "lengthInMinutesOptions", "title", "slug"]
"required": ["lengthInMinutes", "title", "slug"]
},
"OutputAddressLocation_2024_06_14": {
"type": "object",
Expand Down Expand Up @@ -11087,7 +11105,7 @@
"description": "If true, all current and future team members will be assigned to this event type"
}
},
"required": ["lengthInMinutes", "lengthInMinutesOptions", "title", "slug", "schedulingType", "hosts"]
"required": ["lengthInMinutes", "title", "slug", "schedulingType", "hosts"]
},
"CreateTeamEventTypeOutput": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class CreateEventTypeInput_2024_06_14 {
@ArrayUnique()
@IsInt({ each: true })
@Min(1, { each: true })
@DocsProperty({
@DocsPropertyOptional({
example: [15, 30, 60],
description:
"If you want that user can choose between different lengths of the event you can specify them here. Must include the provided `lengthInMinutes`.",
Expand Down

0 comments on commit 5f89783

Please sign in to comment.