src/url/dtos/url.dto.ts
Properties |
|
| Readonly url |
Type : string
|
Decorators :
@ApiProperty({description: 'URL to shorten', example: 'https://app.opensauced.pizza', type: 'string'})
|
|
Defined in src/url/dtos/url.dto.ts:11
|
import { ApiProperty } from "@nestjs/swagger";
import { IsString } from "class-validator";
export class UrlShortenerDto {
@ApiProperty({
description: "URL to shorten",
example: "https://app.opensauced.pizza",
type: "string",
})
@IsString()
readonly url: string;
}