Using transform without duplicating schemas?
Hey! I have a schema like this:
I'd like to add an
The most straightforward solution I could find is doing:
However, I feel like this could just be done at the type-level with a type that recursively adds
Is there a more elegant way to do this/am I doing it right in the first place? Haha. Thanks in advance!
I'd like to add an
external_ prefix to all properties (excluding nested properties).The most straightforward solution I could find is doing:
However, I feel like this could just be done at the type-level with a type that recursively adds
external_ to every property, rather than manually re-writing the Schema.Is there a more elegant way to do this/am I doing it right in the first place? Haha. Thanks in advance!
