-
Notifications
You must be signed in to change notification settings - Fork 48
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
[FEATURE] some should-be-array fields are not guaranteed to be an array #21
Comments
This is problematic when people call array functions on it. |
@isaacs Are you ok with setting |
Same applies for |
Or maybe, rather than setting it to empty array, simply delete the property. |
The "people" fields ( |
In general, there's a trade-off between "API simplicity" (i.e. does a consumer need to do I think a choice should be made. Either all fields get the same treatment, or some fields are excepted due to some kind of special status. |
Not guaranteed to be array: keywords, contributors, authors, man.
Guaranteed to be array (if set): files
The text was updated successfully, but these errors were encountered: