Skip to content

Bug in Sprangular::SmallVariantSerializer #192

@DanielWright

Description

@DanielWright

If I opt not to track inventory on a given variant, variant.total_on_hand is Infinity, which cannot be implicitly converted to JSON, resulting in a JSON::GeneratorError exception during serialization.

I'm not sure what the correct outcome is for this use case. I'm open to thoughts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions