Skip to content

ytypes.Unmarshal() treating 50 as a float64 even though I am converting 50 to string before unmarshalling #972

@ruchakulkarni11

Description

@ruchakulkarni11

I have an enum with index 1 and value 50. schema required to convert the enum index to enum value (string).
I am converting 50 to string type but while ytypes.Unmarshal() sanitizeJson method is treating 50 as a float64 even though I am converting 50 to string before unmarshalling.

Is there any way I can convert the type of 50 to string?

I would appreciate any inputs!

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