Skip to content

Commit

Permalink
Update to currently output (gin-gonic#2188)
Browse files Browse the repository at this point in the history
Excuse me, I forgot change output in gin-gonic#2186
  • Loading branch information
mosdeo authored and ThomasObenaus committed Feb 19, 2020
1 parent a05de9c commit eec6a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ $ curl "localhost:8085/bookable?check_in=2018-04-16&check_out=2018-04-17"
{"message":"Booking dates are valid!"}

$ curl "localhost:8085/bookable?check_in=2018-03-10&check_out=2018-03-09"
{"error":"Key: 'Booking.CheckIn' Error:Field validation for 'CheckIn' failed on the 'bookabledate' tag"}
{"error":"Key: 'Booking.CheckOut' Error:Field validation for 'CheckOut' failed on the 'gtfield' tag"}
```

[Struct level validations](https://github.com/go-playground/validator/releases/tag/v8.7) can also be registered this way.
Expand Down

0 comments on commit eec6a0f

Please sign in to comment.