Steps to replicate the issue (include links if applicable):
- Open a window to Toolhunt and another to Flower (localhost:5555)
- Login and select a task of type audiences, content_types, tasks, or subject_domains.
- Submit data
- Check Flower logs and you'll find the following result for make_put_request:
{ 'code': '1000', 'message': 'Validation Failed', 'errors': [ { 'code': '3101', 'field': 'subject_domains', 'message': 'Enter a valid value conforming to the JSON Schema.' } ]}
What happens?:
This is happening because the data is being sent as a string. Toolhub expects an array of strings.
Unfortunately, Toolhunt expects a string, so this is going to require both front and back-end fixes.
The frontend fix should be as changing line 29 of UserContributionForm.vue to be simply value: fieldValue
I'm working on the backend fix.