OpanApi Union naming? #1126
Replies: 2 comments
-
|
There isn’t currently an easy or built-in way in orpc to name OpenAPI objects for zod unions using the meta object or zod registry, so you won’t get a custom name in the Scalar/Swagger dropdown out of the box. orpc doesn’t yet support registering schemas as named OpenAPI components (like Descriptions for OpenAPI fields are extracted from Zod’s You can find more about JSON schema customization in the orpc OpenAPI docs. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
Let's try |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
Quick question - is there an easy way to name the OpenAPI object when using a zod union within the meta object or somehow using the zod registry?
Something like
to get a nice name within the scalar dropdown (instead of a list of

object)Beta Was this translation helpful? Give feedback.
All reactions