grafana / grafonnet

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

standardOptions.mapping.ValueMap.withType('value') not working on v11.0.0 #202

Closed RorFis closed 1 month ago

RorFis commented 1 month ago

Hi, I tried to generate a dashboard with value Mapping but I have the following error : RUNTIME ERROR: function expected 0 positional argument(s), but got 1

It seems something changed with standardOptions.mapping.ValueMap.withType(). How can I use it ?

Duologic commented 1 month ago

You can drop the argument, the type value is a constant and is now set directly.

Also see PR description other changs: https://github.com/grafana/grafonnet/pull/199 ;)