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

[]byte is reported as array of integers in swagger spec #310

Closed
mikedanese opened this issue Aug 7, 2016 · 1 comment
Closed

[]byte is reported as array of integers in swagger spec #310

mikedanese opened this issue Aug 7, 2016 · 1 comment

Comments

@mikedanese
Copy link
Contributor

mikedanese commented Aug 7, 2016

godoc for encoding/json says:

Array and slice values encode as JSON arrays, except that []byte encodes as a base64-encoded string

So the type for those fields should be string.

cc @liggitt @nikhiljindal

@mikedanese
Copy link
Contributor Author

Fixed by #311

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

1 participant