Closed ghostiam closed 7 years ago
Hey Vladislav, thanks for your PR! Can you add a test to ensure this works?
@mholt OK, I'll write tests
@mholt I made a mistake in the description of the fix. Read the new description.
Thanks, it looks like some tests are failing though.
I do not know how to write a test to check the output generated by the error in the field with the real name of the field in the tag
Fix: If the field is hidden for output generation json (
json:"-"
), but is available for bindings, if this field is required (binding:"required"
) and it is empty then the name will be specified in error "-" taken from tag "json", but not "form" tag.