Skip to content

How can I generate model with exported model validation methods? #2715

Answered by casualjim
abdullahskartal asked this question in Q&A
Discussion options

You must be logged in to vote

We don't export those fields but field validations stop on the first error for a single field. The validation errors have the field name so you can still return the error for a single field.

https://github.com/go-openapi/errors/blob/3d13832e1baddf2d1ed8c410165cb39946f2eeef/headers.go#L26

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@abdullahskartal
Comment options

Answer selected by abdullahskartal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants