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
CLI, npm, or app.quicktype.io:
Version: quicktype version 23.0.171
Description
I am trying to output a zod schema from a json-schema file. My source includes additionalProperties which end up in the output zod schema. I'm not sure if that is valid output, as additionalProperties is a reserved word in json schema.
I don't know what should actually be output in this situation, my use case is to send the generated zod to an instance of autoform, and I wasn't expecting to see additionalProperties part of the form.
The text was updated successfully, but these errors were encountered:
When generating typescript-zod output from json-schema, quicktype includes
additionalProperties
values in the generated typescript.Issue Type
quicktype io
Context (Environment, Version, Language)
mac osx/cli
Input Format: JSON Schema
Output Language: TypeScript Zod
using the npm cli
CLI, npm, or app.quicktype.io:
Version:
quicktype version 23.0.171
Description
I am trying to output a zod schema from a json-schema file. My source includes
additionalProperties
which end up in the output zod schema. I'm not sure if that is valid output, asadditionalProperties
is a reserved word in json schema.additionalProperties docs from JSON-Schema spec
Input Data
Expected Behaviour / Output
Current Behaviour / Output
Steps to Reproduce
quicktype schema.json --lang typescript-zod -o MyThing.ts
Possible Solution
I don't know what should actually be output in this situation, my use case is to send the generated zod to an instance of autoform, and I wasn't expecting to see
additionalProperties
part of the form.The text was updated successfully, but these errors were encountered: