Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

descriptions containing single quotes do not get escaped. #165

Open
svenvarennes opened this issue Dec 1, 2017 · 0 comments
Open

descriptions containing single quotes do not get escaped. #165

svenvarennes opened this issue Dec 1, 2017 · 0 comments

Comments

@svenvarennes
Copy link

svenvarennes commented Dec 1, 2017

Use double quotes, see following swagger schema:

DownForMaintenance:
description: "We're currently down for maintenance."
schema:
$ref: "#/definitions/Error"
headers:
content-type:
description: "Response content-type"
type: string

Will generate tests that fail:

it('should respond with 503 We're currently down for...', function(done) {

it('should respond with 503 We < HEREBEPROBLEM >'< ENDPROBLEM > re currently down for...', function(done) {

I.e. the first value passed to it, if contains a single quote results in the it statement being open and breaking the code.

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

No branches or pull requests

1 participant