Configuration validation errors are not properly displayed when creating a worker version

Erwan Rouchet
2025-03-26T15:53:52Z

https://redmine.teklia.com/issues/10423

1. Create a worker version with an invalid worker configuration, for example {"user_configuration": {"lol": {}}

2. Get an error message below the that says [object Object]

3. Cry.

The user_configuration validation errors can take multiple structures because those errors can come from DRF or from us directly and are grouped together for multiple fields, so a detailed parsing is not worth it. We can add a JSON.stringify when the error is not a string to ensure that it is at least somewhat readable rather than just being an [object Object].