Skip to content

Numbers and booleans as @type #188

@cygri

Description

@cygri

Consider this snippet:

{"@type":1}

The Expansion algorithm doesn't address this case specifically, so I presume the JSON object is not modified during expansion. Same for true and false as @type values. However, this would be illegal:

{"@type":[1, true, false]}

This seems to be inconsistent. Why are numbers and booleans allowed as individual type values, but disallowed in arrays?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions