Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Add class-validator support #157

Closed
wants to merge 1 commit into from
Closed

Conversation

liliwei25
Copy link

@liliwei25 liliwei25 commented Jun 17, 2022

for issue #114

Adds class-validator support

Usage example

/// @Max(5)
count Int

@Max(5) will be parsed and added to CreateDto, UpdateDto and Entity

/// @Max(5)[create, update]
count Int

@Max(5) will be parsed and added to CreateDto and UpdateDto only

/// @Max(5)[create]
/// @Max(10)[update]
count Int

@Max(5) will be parsed and added to CreateDto while @Max(10) will be parsed and added to UpdateDto

Even supports multiline decorators

/// @IsUrl({
///   disallow_auth: false
/// })
url: string

Please review and let me know what can be improved! Thank you!

@sebthom
Copy link
Member

sebthom commented Jun 20, 2022

Dear Liwei, thanks a lot for your interest in this project and your PR. We however stopped using this package ourselves and thus decided to suspend development until a new maintainer is found.

@sebthom sebthom closed this Jun 20, 2022
@wiredmatt
Copy link

@sebthom what are you guys using instead?

@sebthom
Copy link
Member

sebthom commented Jul 25, 2022

@sebthom what are you guys using instead?

@system32uwu we use a completely different approach now. we changed our API from REST to GraphQL

@wiredmatt
Copy link

@sebthom what are you guys using instead?

@system32uwu we use a completely different approach now. we changed our API from REST to GraphQL

Thought so, thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants