Skip to content

Newlines in serialized bodies #793

@bcomnes

Description

@bcomnes

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Working through a regression in 6.1.0 where serialized bodies containing newline characters causing the body to be invalid json. Overriding to 6.0.1 seems to fix the issue. Coming up with a minimal test case.

reproduction: https://gist.github.com/bcomnes/915f1593aaed9fa8608eb454cdac6937

Overriding back to fast-json-stringify 6.0.1 and it works. Trying to return with a return schema causes newline to show up in the response body.

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