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

butlerd: nil slices should serialize to [], not null #203

Closed
fasterthanlime opened this issue Nov 29, 2019 · 1 comment
Closed

butlerd: nil slices should serialize to [], not null #203

fasterthanlime opened this issue Nov 29, 2019 · 1 comment

Comments

@fasterthanlime
Copy link
Collaborator

Due to unfortunate decisions in the design of the Go standard library, queries like

r Profile.List

return something like profiles: null, instead of profiles: [].

This is not the API I want to expose.

@fasterthanlime
Copy link
Collaborator Author

After the fix:

image

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