-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(proposal): use openapi plugin (#1629)
* use openapi plugin for proposal module
- Loading branch information
Showing
6 changed files
with
127 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
import { ApiProperty } from "@nestjs/swagger"; | ||
import { IsString } from "class-validator"; | ||
import { UpdateProposalDto } from "./update-proposal.dto"; | ||
|
||
export class CreateProposalDto extends UpdateProposalDto { | ||
@ApiProperty({ | ||
type: String, | ||
required: true, | ||
description: | ||
"Globally unique identifier of a proposal, eg. PID-prefix/internal-proposal-number. PID prefix is auto prepended.", | ||
}) | ||
/** | ||
* Globally unique identifier of a proposal, eg. PID-prefix/internal-proposal-number. PID prefix is auto prepended. | ||
*/ | ||
@IsString() | ||
readonly proposalId: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.