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

When creators is an object not an array Fabrica fails to load. #200

Closed
richardhallett opened this issue May 24, 2019 · 1 comment
Closed
Assignees
Labels

Comments

@richardhallett
Copy link
Contributor

If the API returns a jsob object {} for the creators attribute, Fabrica attempts to deserialise this using .map, this fails because it is expected an array []

Reproduce with making a DOI with attribute of:

creators: {
          "name": "John Smith",
          "nameType": "Personal"
}
@richardhallett
Copy link
Contributor Author

Solved by the related 282 in lupo. API never returns bad state now for creators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant