TheThingsArchive / api

Generated code for accessing The Things Network v2 API
MIT License
12 stars 8 forks source link

Use github.com/grpc-ecosystem/go-grpc-middleware/validator #3

Closed rvolosatovs closed 7 years ago

rvolosatovs commented 7 years ago

Let's generate validators using this package, that should be possible, no @htdvisser ? https://github.com/grpc-ecosystem/go-grpc-middleware/tree/master/validator

htdvisser commented 7 years ago

After a quick look at the proposed package, I think it's a bit too simple (at the moment). We don't just have strings and numbers, but use custom types with custom validation.

Also, I already started working on validations: https://github.com/TheThingsNetwork/api/compare/feature/go-validate

htdvisser commented 7 years ago

Iceboxing this for now