Skip to content

Commit

Permalink
mark code as omitempty in errorresponse
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaab committed Mar 28, 2024
1 parent d367b7b commit df51645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrf.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (e ErrorResponse) Error() string {

// ErrorResponse provides HTTP error response.
type ErrorResponse struct {
Code uint `json:"code" example:"400"`
Code uint `json:"code,omitempty" example:"400"`
Message string `json:"message" example:"Bad request"`
ErrorType string `json:"error_type,omitempty" example:"invalid_scope"`
}
Expand Down

0 comments on commit df51645

Please sign in to comment.