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
I am trying to use a JSON field for page schemas, where it will be generated by default using the afterChange hook or user can enter the JSON data, but I get a Mongoose validation error when version (draft) mode is on. It says that cast to embed failed. It is working fine when I am removing the page versions mode.
This looks like an edge case for fields named "schema" because it's a reserved name somewhere. I'll look into that further, for now if you rename it to something else it should work.
Describe the Bug
I am trying to use a JSON field for page schemas, where it will be generated by default using the afterChange hook or user can enter the JSON data, but I get a Mongoose validation error when version (draft) mode is on. It says that cast to embed failed. It is working fine when I am removing the page versions mode.
using pnpm version-> 10.4.0
Link to the code that reproduces this issue
https://github.com/krishnasinghdev/bug-report/
Reproduction Steps
Input any json value to the schema field and click on save button.
This is will give error "something went wrong." and below error in terminal.
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: