You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Jackson 2.15 a new StreamReadConstraintswas added which limit the maximum size of certain primitive JSON values. In our application we sometimes receive a String within a JSON message which exceeds the default maximum string length now. Having easy configuration of these stream read constraints would be very helpful for us.
Right now, I think the only way to use something other than the default values is to implement a method like this to override the default JsonFactory created by Micronaut:
Note, the default was changed in a subsequent patch release which does fix the immediate problem for us, but I still think this would be nice to make configurable. FasterXML/jackson-core#1014
@ledigiacomo I don't think that setting is configurable is using Micronaut's built in Jackson support is it? Maybe I don't understand how that would be used.
Feature description
With Jackson 2.15 a new
StreamReadConstraints
was added which limit the maximum size of certain primitive JSON values. In our application we sometimes receive a String within a JSON message which exceeds the default maximum string length now. Having easy configuration of these stream read constraints would be very helpful for us.Right now, I think the only way to use something other than the default values is to implement a method like this to override the default JsonFactory created by Micronaut:
The text was updated successfully, but these errors were encountered: