Skip to content

Add non-finite float support to facet-value #2156

Description

@sydduckworth

Currently deserializing to facet_value::Value fails if the input contains a non-finite (NaN, infinity, etc) float value.
This makes sense for JSON since it doesn't allow non-finite floats, but other formats like YAML do allow them.

My goal is to use facet-value to do partial tree extraction while parsing YAML files, but I'm currently blocked because the input files need to support NaN/Inf values.

I'd be happy to submit a PR making the change, but obviously that may be undesired from the JSON side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions