-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from bcgov/feat/update-post-length-limits
Update length limits
- Loading branch information
Showing
5 changed files
with
25 additions
and
6 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
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,12 +1,18 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { Matches } from 'class-validator'; | ||
import { idName, idRegex } from '../common/constants/parameter-constants'; | ||
import { | ||
idMaxLength, | ||
idName, | ||
idRegex, | ||
} from '../common/constants/parameter-constants'; | ||
|
||
export class IdPathParams { | ||
@Matches(idRegex) | ||
@ApiProperty({ | ||
example: 'Entity-Id-Here', | ||
description: 'The Entity Id for your selected record type.', | ||
maxLength: idMaxLength, | ||
pattern: idRegex.toString().replaceAll('/', ''), | ||
}) | ||
[idName]: 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