[BUGFIX] flamechart: fix palette/shows field mismatch between Go SDK … - #757
Open
luweglarz wants to merge 1 commit into
Open
[BUGFIX] flamechart: fix palette/shows field mismatch between Go SDK …#757luweglarz wants to merge 1 commit into
luweglarz wants to merge 1 commit into
Conversation
…and CUE schema Signed-off-by: luweglarz <lucas.weglarz@amadeus.com>
jgbernalp
approved these changes
Jul 28, 2026
jgbernalp
enabled auto-merge
July 28, 2026 06:18
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to no response for status checks
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When trying to use the Golang SDK of flamechart plugin I am getting such error:
The issue:
The flamechart Go DaC SDK serialized the palette field as mode instead of palette, so any dashboard built with
flamechart.Chart(flamechart.DefinePalette(...))failed server-side CUE validation (spec.mode: field not allowed).Additionally, showSettings, showSeries, showTable, and showFlameGraph are required (non-optional) in the CUE schema, but the Go struct tags used omitempty on their bool fields, so leaving any of them at their default false dropped the key entirely and also failed validation.
The Fix:
Screenshots
Checklist
[<catalog_entry>] <commit message>naming convention using one of thefollowing
catalog_entryvalues:FEATURE,ENHANCEMENT,BUGFIX,BREAKINGCHANGE,DOC,IGNORE.