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
I've spent three days trying to learn the code well enough to revise this and submit a PR, but I am feeling stuck. Seems like generator.ts is the place to do it, as that's where the Schemas namespace is being added to the body and response schemas. But I can't figure out how to use the recompute() method on the parameter Box objects. It seems like the object that's being passed to recompute() is different from the Box instance itself.
Can you offer any pointers on how the Box class works? Seems like there's lots of nesting, and I think I'm just getting lost in the weeds. Thanks.
The text was updated successfully, but these errors were encountered:
uh honestly I haven't been in that codebase for a while, iirc the box thingy was so that the library could support multiple output (TS, zod, valibot, etc) but then I found typebox-workbench which already fulfilled that need
so I stopped working on the box stuff and left things mostly as they are and instead relied on the @sinclair/typebox-codegen for that
Thanks for the prompt reply. Seems like I might be better off using openapi-typescript. It's not perfect, but it seems like there's still a lot of active development over there.
A parameter of type
array
, with theitems
schema defined by reference, produces incorrect output.Minimal example spec
...produces this:
...when it should produce this (note the
Schemas
prefix):I've spent three days trying to learn the code well enough to revise this and submit a PR, but I am feeling stuck. Seems like generator.ts is the place to do it, as that's where the
Schemas
namespace is being added to the body and response schemas. But I can't figure out how to use therecompute()
method on the parameterBox
objects. It seems like the object that's being passed torecompute()
is different from theBox
instance itself.Can you offer any pointers on how the
Box
class works? Seems like there's lots of nesting, and I think I'm just getting lost in the weeds. Thanks.The text was updated successfully, but these errors were encountered: