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

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

Generate property with empty string ('') #1945

jon-whit opened this issue May 17, 2019 · 1 comment
Labels
generate spec Related to spec generation from code

Comments

@jon-whit
Copy link

jon-whit 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.

Environment

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

@fredbi fredbi added the generate spec Related to spec generation from code label May 20, 2019
@jon-whit
Copy link
Author

Anyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generate spec Related to spec generation from code
Projects
None yet
Development

No branches or pull requests

2 participants