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
It would be very nice to allow branded types through a property e.g. x-orval-type: branded which then generates the schema like type ${schema} = Branded<${type}, "${schema}"> instead of type ${schema} = ${type}>. Very handy for ids, etc. Example: playground
I tried to mess around to see what exactly needs to be changed but can't locate the correct template. A known issue is that mock fields that are branded would will need to be casted as their corresponding schema type.
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
-
It would be very nice to allow branded types through a property e.g.
x-orval-type: branded
which then generates the schema liketype ${schema} = Branded<${type}, "${schema}">
instead oftype ${schema} = ${type}>
. Very handy for ids, etc. Example: playgroundI tried to mess around to see what exactly needs to be changed but can't locate the correct template. A known issue is that mock fields that are branded would will need to be casted as their corresponding schema type.
Beta Was this translation helpful? Give feedback.
All reactions