Skip to content

Allow DEL character in request variables #7759

@shravan2x

Description

@shravan2x

Product

Hot Chocolate

Is your feature request related to a problem?

When a DEL character (0x7F) is included in a string passed in as a variable in a hot chocolate mutation call, HC throws an error parsing the request. The actual response returned to the client is something like this:

{
    "errors": [
        {
            "message": "Invalid character within String: 127.",
            "locations": [
                {
                    "line": 1,
                    "column": 3555533
                }
            ],
            "extensions": {
                "code": "HC0011"
            }
        }
    ]
}

The solution you'd like

It appears that characters like DEL are valid per the JSON spec (see discussion in salsify/jsonstreamingparser#53). Could HC allow this character in input data?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions