Transforming Schemas Based on Original Types
I have the following Schema:
I need to transform it into the following schema:
I can do this using
Essentially I want the equivalent of TypeScript Mapped Types, but for Schema.
To do this I think I would need to query the type of the original Schema in order to generate the resulting Schema.
How do I go about this?
I need to transform it into the following schema:
Schema.transform however I need a solution which does the equivalent for any Schema, not just the Asset Schema above.Essentially I want the equivalent of TypeScript Mapped Types, but for Schema.
To do this I think I would need to query the type of the original Schema in order to generate the resulting Schema.
How do I go about this?
