Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include source info in Jackson exceptions #4687

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Philzen
Copy link

@Philzen Philzen commented Jun 4, 2024

The default behavior for JsonParser.Feature.INCLUDE_SOURCE_IN_LOCATION was changed from true to false in Jackson 2.16:

https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.16#streaming-jackson-core

As swagger / OAI specs pretty much by definition are open and thus should never include sensitive data, it's much more helpful to the DX having such details in the exception messages.

@Philzen Philzen changed the title Include source in Jackson exceptions Include source info in Jackson exceptions Jun 4, 2024
@Philzen Philzen force-pushed the change/enable-jackson-include-source-in-exceptions-2 branch from 6b52af9 to 56fc9fa Compare June 4, 2024 09:45
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.

1 participant