Scheduling infrastructure for absolutely everyone.
fix: corrects routing form response type (#28336)
Romite75614164baf
diff --git a/.github/oasdiff-err-ignore.txt b/.github/oasdiff-err-ignore.txtindex 07b12b72c8d..de44263e052 100644--- a/.github/oasdiff-err-ignore.txt+++ b/.github/oasdiff-err-ignore.txt@@ -250,6 +250,20 @@ PATCH /v2/webhooks/{webhookId} removed the enum value 'RECORDING_TRANSCRIPTION_GPATCH /v2/webhooks/{webhookId} removed the enum value 'WRONG_ASSIGNMENT_REPORT' of the request property 'triggers'PATCH /v2/webhooks/{webhookId} the 'triggers' request property type/format changed from 'string'/'' to 'array'/''PATCH /v2/webhooks/{webhookId} the 'data/triggers/items/' response's property type/format changed from 'object'/'' to 'string'/'' for status '200'+GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses the 'data' response's property type/format changed from 'object'/'' to 'array'/'' for status '200'+GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/createdAt' from the response with the '200' status+GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/formFillerId' from the response with the '200' status+GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/formId' from the response with the '200' status+GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/id' from the response with the '200' status+GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/response' from the response with the '200' status+GET /v2/organizations/{orgId}/routing-forms/{routingFormId}/responses removed the required property 'data/routedToBookingUid' from the response with the '200' status+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'+GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/createdAt' from the response with the '200' status+GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/formFillerId' from the response with the '200' status+GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/formId' from the response with the '200' status+GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/id' from the response with the '200' status+GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/response' from the response with the '200' status+GET /v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses removed the required property 'data/routedToBookingUid' from the response with the '200' statusGET /v2/organizations/{orgId}/teams/{teamId}/verified-resources/emails the 'data' response's property type/format changed from 'object'/'' to 'array'/'' for status '200'GET /v2/organizations/{orgId}/teams/{teamId}/verified-resources/emails removed the required property 'data/availability' from the response with the '200' statusGET /v2/organizations/{orgId}/teams/{teamId}/verified-resources/emails removed the required property 'data/id' from the response with the '200' statusdiff --git a/apps/api/v2/src/modules/organizations/routing-forms/outputs/get-routing-form-responses.output.ts b/apps/api/v2/src/modules/organizations/routing-forms/outputs/get-routing-form-responses.output.tsindex 261275d5410..c32ebd9d0bb 100644--- a/apps/api/v2/src/modules/organizations/routing-forms/outputs/get-routing-form-responses.output.ts+++ b/apps/api/v2/src/modules/organizations/routing-forms/outputs/get-routing-form-responses.output.ts@@ -10,7 +10,7 @@ export class GetRoutingFormResponsesOutput {@IsEnum([SUCCESS_STATUS, ERROR_STATUS])status!: typeof SUCCESS_STATUS | typeof ERROR_STATUS;- @ApiProperty({ type: RoutingFormResponseOutput })+ @ApiProperty({ type: [RoutingFormResponseOutput] })@Expose()@Type(() => RoutingFormResponseOutput)data!: RoutingFormResponseOutput[];diff --git a/docs/api-reference/v2/openapi.json b/docs/api-reference/v2/openapi.jsonindex 1e04087d1e6..bb5a7c0912d 100644--- a/docs/api-reference/v2/openapi.json+++ b/docs/api-reference/v2/openapi.json@@ -28978,7 +28978,10 @@"enum": ["success", "error"]},"data": {- "$ref": "#/components/schemas/RoutingFormResponseOutput"+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/RoutingFormResponseOutput"+ }}},"required": ["status", "data"]