You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proposed solution to this is to not use the removeAdditional option - which will mean coerce will coerce what it can but will not cause the loss of any data - which is probably consistent with our approach elsewhere. If users want to persist additional data then the best place to put that is in Enity.meta
The text was updated successfully, but these errors were encountered:
When using Encoda to generate documentation for Schema, @beneboy and I have noticed the followed error message (here replicated using the CLI):
where
test.json
isI turns out that this is related to what is referred to as a bug here:
encoda/src/util/__tests__/util.test.ts
Lines 264 to 284 in 2c7dca6
But which is apparently not a bug, but rather expected behaviour from using Ajv's
removeAdditional: true
option:The proposed solution to this is to not use the
removeAdditional
option - which will meancoerce
will coerce what it can but will not cause the loss of any data - which is probably consistent with our approach elsewhere. If users want to persist additional data then the best place to put that is inEnity.meta
The text was updated successfully, but these errors were encountered: