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 have a question regarding the usage with a schema that includes an array of objects.
According to the schema provided below, the following TypeScript type is generated:
I've explored JSON Schema format a bit, and it seems like additionalItems: falsefixes my issue.
upd. Now, I can use payments only as tuple with one object 🤔.
Hello!
Firstly, thanks for the library!
I have a question regarding the usage with a schema that includes an array of objects.
According to the schema provided below, the following TypeScript type is generated:
Should ResultType also include ...unknown[]?
Perhaps it would be sufficient if the final type:
typescript: 5.4.2
json-schema-to-ts: 3.0.1
The text was updated successfully, but these errors were encountered: