swagger-api / swagger-core

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API
http://swagger.io
Apache License 2.0
7.36k stars 2.17k forks source link

Include source info in Jackson exceptions #4687

Open Philzen opened 3 weeks ago

Philzen commented 3 weeks ago

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.