Skip to content

fix: correct @ApiProperty types in verified resources outputs#28340

Merged
volnei merged 2 commits intocalcom:mainfrom
romitg2:docs/verified-resources-output
Mar 10, 2026
Merged

fix: correct @ApiProperty types in verified resources outputs#28340
volnei merged 2 commits intocalcom:mainfrom
romitg2:docs/verified-resources-output

Conversation

@romitg2
Copy link
Member

@romitg2 romitg2 commented Mar 9, 2026

Problem:

The @ApiProperty decorators in verified-email.output.ts and verified-phone.output.ts were incorrectly using ScheduleOutput as the type for verified email/phone data properties. This was likely a copy-paste error from when the files were created.

This caused the OpenAPI/Swagger documentation to show schedule-related fields instead of the actual verified email/phone fields for these endpoints:

  • /v2/verified-resources/* (User)
  • /v2/teams/:teamId/verified-resources/* (Team)
  • /v2/organizations/:orgId/teams/:teamId/verified-resources/* (Org Team)

Solution

Updated the @ApiProperty({ type: ... }) to reference the correct output data classes:

@romitg2 romitg2 requested a review from a team as a code owner March 9, 2026 06:48
@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Mar 9, 2026
@romitg2 romitg2 added ready-for-e2e run-ci Approve CI to run for external contributors labels Mar 9, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

@romitg2 romitg2 added run-ci Approve CI to run for external contributors and removed run-ci Approve CI to run for external contributors labels Mar 9, 2026
Copy link
Contributor

@volnei volnei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@volnei volnei merged commit c8e1b4e into calcom:main Mar 10, 2026
103 of 106 checks passed
yuvrajangadsingh pushed a commit to yuvrajangadsingh/cal.com that referenced this pull request Mar 11, 2026
…#28340)

* fix(docs): corrects output response type for verified resources endpoints

* fix: udpate oasdiff-err-ignore.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Created by Linear-GitHub Sync ready-for-e2e run-ci Approve CI to run for external contributors size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants