Replies: 3 comments 1 reply
-
I had a brain-wave and realized that the conflict could be that the other fields on the panel could be creating a conflict where it would match either of those panel types. I was able to pare this down considerably by removing the I still have a conflict with the table, which I think I may be able to sort out with this newly acquired knowledge/pattern.
|
Beta Was this translation helpful? Give feedback.
-
I gave @rgeyer an update out of band, but i should say here, too - this is a known issue, and is a top priority. Or rather, was, because grafana/grafana#38727 is poised to fix not only this particular problem, but should also make composing in plugin schema trivial - a huge win for what we need to do over here in polly! We'll pull those changes to schema into polly as soon as that PR is merged. |
Beta Was this translation helpful? Give feedback.
-
Also relevant - validation errors are horrible, it's a known issue: grafana/grafana#37859 |
Beta Was this translation helpful? Give feedback.
-
I'm still.. Struggling with what I asked in #34.. I think.
So, what I would really REALLY REALLY love, is a compiled schema where I could ask grafana-cli, or cue, or whatever the right tool is this question. What are all possible values for
Family.lineages.0.0.panels.*.type
?I suppose the closest I can get to answering this now is "does my existing, rendered JSON, use values for that property which are valid according to the schema". However, I seem to be doing that wrong as well?
Note the not-at-all-unsupported-json file attached. I'm attempting to validate that with grafana-cli, and getting errors about conflicting values for the panel type. Near as I can tell, they're valid panel types (it renders in the grafana dashboard) but the validation seems to dislike it.
I suspect a cue problem with disjunctions, but I don't know enough, nor can I extract the schema against which the CLI is validating, to verify.
hass-not-at-all-json.txt
grafanacli-out.txt
Beta Was this translation helpful? Give feedback.
All reactions