-
Notifications
You must be signed in to change notification settings - Fork 22
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
Schema: object hierarchy #23
Comments
After investigation, it appears that this bug is not related to object hierarchies. The 500 error is raised by the python elastic search client. And more specificaly by the JSONSerializer that is broken in the 1.2.0 version. I'm going to open an issue on ElasticSearch repository and propose a fix. Then i'll link that issue in this ticket. Regards |
revert to python 2 super() syntax in ElasticJSONSerializer 'default' function rel superdesk#23
A few more tests an a lot of coffee later, and i figured the issue was with eve-elastic json serializer and not with the elasticsearch one. I opened a pull request with a fix : #24 |
👍 thanks for that. released |
Hi,
I have defined a schema in Eve to be used with a collection of products.
In this schema i added an 'images' attribute of type list of objects. It is expressed as follows :
This is a valid Cerberus format in Eve.
Inserting an object with a POST request works fine with a mongodb backend.
Request example:
POST on http://localhost:5000/products
with body containing :
With mongodb i receive a 201 response status whereas with elasticsearch i get a 500 response error and the data is not inserted nor the index created.
Am i missing something ?
Is any additional configuration required to make this work ?
Thanks
The text was updated successfully, but these errors were encountered: