grafana / cog

Code Generation with a human touch
Apache License 2.0
43 stars 2 forks source link

Omit an option in veneer, omits the default value for it. #527

Closed spinillos closed 3 weeks ago

spinillos commented 3 weeks ago

In some languages we generate the default values in the builders and for others, in the types.

When we ignore an option for the builders, and this option contains a default, it's completely skipped. For example, schemaVersion.

For example, in Go there are less defaults than Typescript. In Go we parse the Builders, and Schema in Typescript.