Closed winston0410 closed 2 years ago
Hi @winston0410 ! See https://github.com/ThomasAribart/json-schema-to-ts/issues/79 : Your header
schema misses a type: "object"
keyword !
Right after adding that back in, the type is generated perfectly. Thanks!
Not quite sure how to reproduce this in a useful way, I have a schema like this, which extends a schema in
allOf
. Even though I have ensure that theaccept
exists inheader
in programmatic level, it is not reflected in the type generated by this library.See the final type by hovering on
obj