Is it possible to extract a "subtype"?
Hi,
I'm looking into Arktype for the first time, so please forgive me if this is a noob question 😅
I wanna extract a "subtype"/"subschema" from a schema. I don't know how describe it better other than a code example:
8 Replies
btw, Why not export them in the scope?
Ah, I probably should have added that I don't control the scope. It is generated using https://github.com/astahmer/typed-openapi
GitHub
GitHub - astahmer/typed-openapi: Generate a headless Typescript API...
Generate a headless Typescript API client from an OpenAPI spec - astahmer/typed-openapi
You can use chained
.get
calls
@PIat that doesn't seem to be possible or am I doing it wrong?
Strange!
Which version are you on?
Ah, I upgraded to
"2.0.0-beta.5"
and now it works! Thank you!Perfect!