bson-kotlinx should support kotlin.uuid.Uuid

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Java Drivers
    • None
    • None
    • None
    • None
    • None
    • None

       

      The following class is serialized differently when using `bson-kotlin` and `bson-kotlinx`:

       

      @Serializable
      data class U(
          val x: kotlin.uuid.Uuid,
      )

      With `bson-kotlin`, the field `x` is correctly serialized as a BinaryData with subtype 0x04.

       

      However, when using `bson-kotlinx`, it is serialized as a String.

      This means that this class doesn't pass the UUID tests.

            Assignee:
            Nabil Hachicha
            Reporter:
            Ivan Canet
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: