Repository navigation
Surface field schema errors more gracefully #2906
Closed
Mng-dev-ai
announced in
Roadmap
Replies: 3 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. |
0 replies
|
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! |
0 replies
|
We no longer use joi. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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 typesbut the actual error is about
computednot being allowed in a field definitionPayload Version
1.9.2
All reactions