Skip to content

feat: implement createRFC7807Error factory to support RFC7807#151

Open
gulbaki wants to merge 1 commit into
fastify:mainfrom
gulbaki:feat/rfc7807-error-support
Open

feat: implement createRFC7807Error factory to support RFC7807#151
gulbaki wants to merge 1 commit into
fastify:mainfrom
gulbaki:feat/rfc7807-error-support

Conversation

@gulbaki

@gulbaki gulbaki commented Jun 27, 2025

Copy link
Copy Markdown

This PR introduces a new createRFC7807Error factory method for creating errors compatible with RFC7807

Test coverage included for default and custom scenarios

fixes: #64

Checklist

@Uzlopak

Uzlopak commented Jun 29, 2025

Copy link
Copy Markdown
Contributor

Why do we need a separater factory method?

@gulbaki

gulbaki commented Jun 29, 2025

Copy link
Copy Markdown
Author

@Uzlopak
As mentioned in the comments below, introducing a separate factory method was considered a good solution:

#64 (comment)
#64 (comment)

That's why I chose to proceed with the createRFC7807Error approach.
if you have any alternative suggestions or ideas , i can apply

@gurgunday

Copy link
Copy Markdown
Member

Hey, thanks for the PR!

Seems like there is a new RFC (rfc9457) that obseletes 7807

Can you please check if there are any big changes? The name of the factory might need to be updated as well

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.

Implement RFC7807

3 participants