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
Since query is optional you won't be able to access sort_key on paths["/mapping/configurations"]["get"]["parameters"]["query"] (Property 'sort_key' does not exist on type).
I guess we could modify oapiRef() to prefix the base type with DeepRequired<> and use stringToAST to inject the helper type to the footer.
I would open open a PR but I'm not familiar enough with the Typescript compiler API to do so quickly, so unless no one else volunteers to do so I would gladly pass.
Required
My OpenAPI schema is valid and passes the Redocly validator (npx @redocly/cli@latest lint)
openapi-typescript version
7.6.1
Node.js version
v20.17.0
OS + version
Arch Linux
Description
Since
query
is optional you won't be able to accesssort_key
onpaths["/mapping/configurations"]["get"]["parameters"]["query"]
(Property 'sort_key' does not exist on type
).Reproduction
Expected result
We could easily brute force our way into the array type using
DeepRequired
:I guess we could modify
oapiRef()
to prefix the base type withDeepRequired<>
and usestringToAST
to inject the helper type to the footer.I would open open a PR but I'm not familiar enough with the Typescript compiler API to do so quickly, so unless no one else volunteers to do so I would gladly pass.
Required
npx @redocly/cli@latest lint
)Extra
The text was updated successfully, but these errors were encountered: