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

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

* fix: udpate oasdiff-err-ignore.txt
This commit is contained in:
Romit
2026-03-09 22:09:09 -03:00
committed by GitHub
parent d6741a1e2b
commit c8e1b4e66d
4 changed files with 291 additions and 131 deletions
@@ -1,4 +1,3 @@
import { ScheduleOutput } from "@/ee/schedules/schedules_2024_04_15/outputs/schedule.output";
import { ApiProperty } from "@nestjs/swagger";
import { Expose, Type } from "class-transformer";
import {
@@ -84,7 +83,7 @@ export class TeamVerifiedEmailOutput {
status!: typeof SUCCESS_STATUS | typeof ERROR_STATUS;
@ApiProperty({
type: ScheduleOutput,
type: TeamVerifiedEmailOutputData,
})
@IsNotEmptyObject()
@Type(() => TeamVerifiedEmailOutputData)
@@ -97,7 +96,7 @@ export class UserVerifiedEmailOutput {
status!: typeof SUCCESS_STATUS | typeof ERROR_STATUS;
@ApiProperty({
type: ScheduleOutput,
type: UserVerifiedEmailOutputData,
})
@IsNotEmptyObject()
@Type(() => UserVerifiedEmailOutputData)
@@ -110,7 +109,7 @@ export class TeamVerifiedEmailsOutput {
status!: typeof SUCCESS_STATUS | typeof ERROR_STATUS;
@ApiProperty({
type: ScheduleOutput,
type: [TeamVerifiedEmailOutputData],
})
@IsNotEmptyObject()
@IsArray()
@@ -125,7 +124,7 @@ export class UserVerifiedEmailsOutput {
status!: typeof SUCCESS_STATUS | typeof ERROR_STATUS;
@ApiProperty({
type: ScheduleOutput,
type: [UserVerifiedEmailOutputData],
})
@IsNotEmptyObject()
@IsArray()
@@ -1,4 +1,3 @@
import { ScheduleOutput } from "@/ee/schedules/schedules_2024_04_15/outputs/schedule.output";
import { ApiProperty } from "@nestjs/swagger";
import { Expose, Type } from "class-transformer";
import {
@@ -84,7 +83,7 @@ export class UserVerifiedPhoneOutput {
status!: typeof SUCCESS_STATUS | typeof ERROR_STATUS;
@ApiProperty({
type: ScheduleOutput,
type: UserVerifiedPhoneOutputData,
})
@IsNotEmptyObject()
@Type(() => UserVerifiedPhoneOutputData)
@@ -97,7 +96,7 @@ export class TeamVerifiedPhoneOutput {
status!: typeof SUCCESS_STATUS | typeof ERROR_STATUS;
@ApiProperty({
type: ScheduleOutput,
type: TeamVerifiedPhoneOutputData,
})
@IsNotEmptyObject()
@Type(() => TeamVerifiedPhoneOutputData)
@@ -110,7 +109,7 @@ export class UserVerifiedPhonesOutput {
status!: typeof SUCCESS_STATUS | typeof ERROR_STATUS;
@ApiProperty({
type: ScheduleOutput,
type: [UserVerifiedPhoneOutputData],
})
@IsNotEmptyObject()
@IsArray()
@@ -125,7 +124,7 @@ export class TeamVerifiedPhonesOutput {
status!: typeof SUCCESS_STATUS | typeof ERROR_STATUS;
@ApiProperty({
type: ScheduleOutput,
type: [TeamVerifiedPhoneOutputData],
})
@IsNotEmptyObject()
@IsArray()