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
Hello,
first of all thank you for the brilliant library.
As already mentioned in Issue #534, the feature of custom struct tags was implemented with PR #1569.
However, I noticed that the custom struct tags are only added to the database table structs. But not to the their corresponding parameter structs.
In my opinion, this would also be quite helpful and should not cause more problems than the struct tags of the database types, or tables, at least in terms of compatibility.
Currently I am facing the problem to validate user payloads of a REST API in GoLang.
For this I use among others the libraries: sqlc, gofiber, go-playground/validator/v10.
I noticed the whole thing after I wanted to validate payload data to create a user.
Some project snippets for reference:
What do you want to change?
Hello,
first of all thank you for the brilliant library.
As already mentioned in Issue #534, the feature of custom struct tags was implemented with PR #1569.
However, I noticed that the custom struct tags are only added to the database table structs. But not to the their corresponding parameter structs.
In my opinion, this would also be quite helpful and should not cause more problems than the struct tags of the database types, or tables, at least in terms of compatibility.
Currently I am facing the problem to validate user payloads of a REST API in GoLang.
For this I use among others the libraries: sqlc, gofiber, go-playground/validator/v10.
I noticed the whole thing after I wanted to validate payload data to create a user.
Some project snippets for reference:
What database engines need to be changed?
PostgreSQL, MySQL
What programming language backends need to be changed?
Go, Python, Kotlin
The text was updated successfully, but these errors were encountered: