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
Quicktype does not generate a field for additionalProperties in the output Go struct
Issue Type
Quicktype output
Context (Environment, Version, Language)
Input Format: JSON Schema
Output Language: Go
CLI, npm, or app.quicktype.io: CLI
Version: 23.0.171
Description
The devcontainer base schema uses additionalProperties for defining a set of devcontainer features. Without a field to read the map of additional properties it's not possible to implement the features spec without modifying the generated Go code or the original schema JSON.
I had to modify the generated classes manually. I think this is a huge blocker and it makes the tool much less useful, as if you need to modify the generated code, you don't really get the benefit of auto-generation. I bet AI can generate better code at this point 🙂
Let me know if you have any suggestions and workarounds. I am looking for answers that would enable me to use auto-generated stubs directly. I also accept other library recommendations?
Quicktype does not generate a field for additionalProperties in the output Go struct
Issue Type
Quicktype output
Context (Environment, Version, Language)
Input Format: JSON Schema
Output Language: Go
CLI, npm, or app.quicktype.io: CLI
Version: 23.0.171
Description
The devcontainer base schema uses additionalProperties for defining a set of devcontainer features. Without a field to read the map of additional properties it's not possible to implement the features spec without modifying the generated Go code or the original schema JSON.
Input Data
test.schema.json:
Expected Behaviour / Output
The generated struct contains fields for the deprecated field, plus some field for accessing additionalProperties, e.g:
Current Behaviour / Output
Only the deprecated field is generated:
Steps to Reproduce
run with the schema input above:
The text was updated successfully, but these errors were encountered: