Skip to content

feat: allow more flexible error responses - #120

Merged
thalesmg merged 1 commit into
masterfrom
flex-error-responses
Dec 4, 2023
Merged

thalesmg merged 1 commit into
masterfrom
flex-error-responses

Conversation

@thalesmg

@thalesmg thalesmg commented Dec 4, 2023 •

Copy link
Copy Markdown
Contributor

This allows minirest to return keys in the root JSON document other than message and code.

e.g.:

{
  "code": "BAD_REQUEST",
  "message": "boom",
  "hint": "something is wrong"
}

@thalesmg
thalesmg merged commit ede7681 into master Dec 4, 2023
@thalesmg
thalesmg deleted the flex-error-responses branch December 4, 2023 20:03
@thalesmg

thalesmg commented Dec 4, 2023

Copy link
Copy Markdown
Contributor Author

tagged 1.3.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants