You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.
@omrfrkazt can you give a little bit more information on why we need this? I know you are giving this as a suggestion, but not sure what are the pros/cons. Can you talk more on how you used it before?
Pros:
Instead of defining all requests or responses chained validate functions, it makes this part more specific. for example, when the 'required' tag is used, it can automatically validate that field or by writing custom tags for custom validations, the same validation function can be used in many places.
Cons:
Friends who will develop the application need to know what the tags mean. documentation is good but dependency is dependency.
pano-api/server/create_post.go
Line 24 in 889c384
validator : https://github.com/go-playground/validator
The text was updated successfully, but these errors were encountered: