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

Generate property with empty string ('') #1945

jon-whit opened this issue May 17, 2019 · 1 comment


None yet
2 participants
Copy link

commented May 17, 2019

In doc.go I have

// Package main API
//     oauth2_jwt:
//       flow: 'implicit'
//       authorizationUrl:  ''

The output of go-swagger omits the authorizationUrl property from the generated YAML.

How can I escape single quotes in the Godoc so that the generated spec gets the property authorizationUrl: ''? I've tried "''", '''', '\'\'', etc.. None of them lead to the behavior I'd like.


swagger version: commit 8ce1ff4
go version: 1.12.4
OS: darwin/amd64 (Mac OS)


This comment has been minimized.

Copy link

commented May 22, 2019


@jon-whit jon-whit closed this May 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.