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

Adding custom validators? #15

Open
vjanelle opened this issue Jan 16, 2020 · 2 comments
Open

Adding custom validators? #15

vjanelle opened this issue Jan 16, 2020 · 2 comments

Comments

@vjanelle
Copy link

What do you think about adding custom validators? https://github.com/asaskevich/govalidator has support for this, would be useful for things like ensuring that a parameter is in the value of a map, for example.

@ripienaar
Copy link
Collaborator

you wont like it, but adding them to https://github.com/choria-io/go-validator/ is best - even if that calls into govalidator?

Seems like epic hassle though - but that go-validator also lets you put the same validations on go structs in go written rpc agents to do additional input validation for free in addition to what DDLs support, so there would be value in extending it

@vjanelle
Copy link
Author

Wasn't specifically suggesting the package, just the functionality.

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

No branches or pull requests

2 participants