Skip to content

Make unpacked parameter with consistent type #62

@LuisFSegalla

Description

@LuisFSegalla

On the unpack_status_array function the type field in the new OdinParameter is defined by the original parameter metadata type. This can causes some issues, because when we try to unpack an OdinParameter that has a list as it's value the metadata will always be assumed to be of string type. This is not ideal for cases where we're handling a list of numerical types (int/floats), for example.

I suggest we change the function to build the new parameter with a similar logic to that of the infer_metadata function so that the expected value is coherent.

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