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

Better error message if Author, Owner not in proper format #259

Open
appukuttan-shailesh opened this issue Jan 30, 2020 · 0 comments
Open

Comments

@appukuttan-shailesh
Copy link
Collaborator

If string input for author/owner, e.g.
author="Shailesh Appukuttan"
we get an error message of the form:

Exception Type: TypeError at /models/
Exception Value: string indices must be integers

This should be updated to provide a more informative response, such as:
author and owner fields should have values of the form:
{"family_name": "Appukuttan", "given_name": "Shailesh"}

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

No branches or pull requests

1 participant