Skip to content

CreateMergePatch: Numbers may get truncated due to always being treated as float64 #189

Closed

Description

@alvaroaleman

Hey there,

Thanks for creating this library! We are using it downstream in controller-runtime and recently someone posted an issue that some of their int64s get truncated when using CreateMergePatch. From what I can tell, this is caused by numbers always being treated as float64.

Is this something that is a) realistically possible to fix and b) something you would consider changing?

Thanks in advance!

Activity

  1. evanphx commented on Jan 11, 2024

    @evanphx
    Owner

    Hiya! I'll have a look.

  2. evanphx commented on Jan 11, 2024

    @evanphx
    Owner

    Turned out to be a fairly easy fix, just need to avoid using float64. Have a look at #194.

  3. alvaroaleman commented on Jan 12, 2024

    @alvaroaleman
    Author

    That did the trick, thank you so much for looking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions