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

Support writing longs as strings (opt-in) #98

Commits on Jun 12, 2023

  1. Support writing longs as strings (opt-in)

    `jackson-datatype-protobuf` is a missing link in the Jackson ecosystem,
    but it doesn't currently provide a way to write 64-bit integers using
    their canonical representation, which poses a problem for strict
    downstream parsers given the limitation of the maximum value to
    [2^53 - 1](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)
    ([alt](https://developers.google.com/discovery/v1/type-format)) in
    JavaScript, whereas this value is for instance
    [2^63 - 1](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html)
    in Java.
    
    The change proposed here is to provide users who need it with an option
    to activate this canonical representation, without altering the existing
    default behavior.
    rdesgroppes committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    9378d7c View commit details
    Browse the repository at this point in the history