grafana / grafonnet

Jsonnet library for generating Grafana dashboards.
https://grafana.github.io/grafonnet/
Apache License 2.0
352 stars 19 forks source link

fix(table): add missing fieldconfig #134

Closed Duologic closed 1 year ago

Duologic commented 1 year ago

While awaiting the schema being fixed upstream (https://github.com/grafana/grafana/issues/75610), I've rendered a JSON schema of the TableFieldOptions so we can generate Jsonnet code for it.

This is the command used to generate the schema for this particular config:

npx --yes ts-json-schema-generator -p packages/grafana-schema/src/common/common.gen.ts --tsconfig ./tsconfig.json -t TableFieldOptions -o table_FieldConfig.json

This PR adds the schema if it does not exist yet (future proofing).

Fixes #126