Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the escape sequence is a string, the backslash is doubled. #999

Closed
yamamotoshuto opened this issue Aug 2, 2019 · 1 comment
Closed

Comments

@yamamotoshuto
Copy link

If I write such an example to express an escape sequence like \n or \t as a string in the sample,

example: 'foo \n bar'

The sample is output like this.

{
    "test": "foo \\n bar"
}

There is no way to express this sample.

{
    "test": "foo \n bar"
}
@RomanHotsiy
Copy link
Member

In the upcoming version of Redoc (coming a bit later today) use:

example: "foo \n bar"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants