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 have a schema that nests several layers deep. It goes SchemaA has Object{SchemaB} > Array[SchemaC] > Object{SchemaD) > Object Attribute.
I'm having trouble figuring out how to set up the saveUnknown option to allow for ONLY this attribute to save unknown. So far the best I've gotten is to add the saveUnknown property to SchemaA as saveUnknown: [Object{SchemaB}.Array[SchemaC].** but that allows unknown properties on everything in SchemaC and below.
Here's the trimmed down set of schemas I'm working with:
The goal is to allow saveUnknown on the Translations attribute and only that attribute. I've tried adding saveUnknown to textSchema but nothing was getting saved. I've tried adding a long chain all the way down to Translations on the top level schema as well as some variations in between.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a schema that nests several layers deep. It goes SchemaA has Object{SchemaB} > Array[SchemaC] > Object{SchemaD) > Object Attribute.
I'm having trouble figuring out how to set up the saveUnknown option to allow for ONLY this attribute to save unknown. So far the best I've gotten is to add the saveUnknown property to SchemaA as
saveUnknown: [Object{SchemaB}.Array[SchemaC].**
but that allows unknown properties on everything in SchemaC and below.Here's the trimmed down set of schemas I'm working with:
The goal is to allow saveUnknown on the Translations attribute and only that attribute. I've tried adding saveUnknown to textSchema but nothing was getting saved. I've tried adding a long chain all the way down to Translations on the top level schema as well as some variations in between.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions