Skip to content

Commit e756141

Browse files
authored
fix: corrects routing form response type (calcom#28336)
* fix(docs): corrects routing form response type * fix: update oasdiff-err-ignore
1 parent c8e1b4e commit e756141

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

.github/oasdiff-err-ignore.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,20 @@ PATCH /v2/webhooks/{webhookId} removed the enum value 'RECORDING_TRANSCRIPTION_G
250250
PATCH /v2/webhooks/{webhookId} removed the enum value 'WRONG_ASSIGNMENT_REPORT' of the request property 'triggers'
251251
PATCH /v2/webhooks/{webhookId} the 'triggers' request property type/format changed from 'string'/'' to 'array'/''
252252
PATCH /v2/webhooks/{webhookId} the 'data/triggers/items/' response's property type/format changed from 'object'/'' to 'string'/'' for status '200'
253+
GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses the 'data' response's property type/format changed from 'object'/'' to 'array'/'' for status '200'
254+
GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/createdAt' from the response with the '200' status
255+
GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/formFillerId' from the response with the '200' status
256+
GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/formId' from the response with the '200' status
257+
GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/id' from the response with the '200' status
258+
GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/response' from the response with the '200' status
259+
GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/routedToBookingUid' from the response with the '200' status
260+
GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses the 'data' response's property type/format changed from 'object'/'' to 'array'/'' for status '200'
261+
GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/createdAt' from the response with the '200' status
262+
GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/formFillerId' from the response with the '200' status
263+
GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/formId' from the response with the '200' status
264+
GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/id' from the response with the '200' status
265+
GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/response' from the response with the '200' status
266+
GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/routedToBookingUid' from the response with the '200' status
253267
GET /v2/organizations/{orgId}/teams/{teamId}/verified-resources/emails the 'data' response's property type/format changed from 'object'/'' to 'array'/'' for status '200'
254268
GET /v2/organizations/{orgId}/teams/{teamId}/verified-resources/emails removed the required property 'data/availability' from the response with the '200' status
255269
GET /v2/organizations/{orgId}/teams/{teamId}/verified-resources/emails removed the required property 'data/id' from the response with the '200' status

apps/api/v2/src/modules/organizations/routing-forms/outputs/get-routing-form-responses.output.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class GetRoutingFormResponsesOutput {
1010
@IsEnum([SUCCESS_STATUS, ERROR_STATUS])
1111
status!: typeof SUCCESS_STATUS | typeof ERROR_STATUS;
1212

13-
@ApiProperty({ type: RoutingFormResponseOutput })
13+
@ApiProperty({ type: [RoutingFormResponseOutput] })
1414
@Expose()
1515
@Type(() => RoutingFormResponseOutput)
1616
data!: RoutingFormResponseOutput[];

docs/api-reference/v2/openapi.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28978,7 +28978,10 @@
2897828978
"enum": ["success", "error"]
2897928979
},
2898028980
"data": {
28981-
"$ref": "#/components/schemas/RoutingFormResponseOutput"
28981+
"type": "array",
28982+
"items": {
28983+
"$ref": "#/components/schemas/RoutingFormResponseOutput"
28984+
}
2898228985
}
2898328986
},
2898428987
"required": ["status", "data"]

0 commit comments

Comments
 (0)