forked from Yara724/api
16 lines
463 B
TypeScript
16 lines
463 B
TypeScript
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
import { IsIn, IsOptional } from "class-validator";
|
|
|
|
export class GetCaptchaImageQueryDto {
|
|
@ApiPropertyOptional({
|
|
enum: ["json", "raw"],
|
|
default: "json",
|
|
description:
|
|
"On GET /actor/captcha, use `raw` to return image/svg+xml (for browser preview). " +
|
|
"The JSON response includes `captchaId` either way.",
|
|
})
|
|
@IsOptional()
|
|
@IsIn(["json", "raw"])
|
|
format?: "json" | "raw";
|
|
}
|