Surface field schema errors more gracefully #2906
Replies: 2 comments
-
Have frequently experienced this when doing dev and not being vigilant about watching hot reloads, only workaround I've found is commenting out all fields and reintroducing them one by one back into the collection. |
Beta Was this translation helpful? Give feedback.
-
Hey all, this is actually just how our implementation of Joi schema validation works. Nested errors are fairly difficult to report properly. As of now, this is technically functioning as we intended, although I do agree that more work should be done here to make these nested errors surface more gracefully. I will convert this to a roadmap item and then address it accordingly with the team soon. Looking forward to seeing these cleaned up a bit for sure. Thanks for bringing this up! |
Beta Was this translation helpful? Give feedback.
-
Link to reproduction
n/a
To Reproduce
Create a collection with the following code:
Describe the Bug
When the server reloads you'll see the following error:
Collection "sandbox" > Field "virtual" > "value" does not match any of the allowed types
but the actual error is about
computed
not being allowed in a field definitionPayload Version
1.9.2
Beta Was this translation helpful? Give feedback.
All reactions