Raised from #1463
We should add some validation into the command to check the incoming JSON and throw an error if invalid before we send it to the API, as currently when sending invalid template palette (as detailed in the referenced issue), no error is thrown so the CLI gives a false positive.
A valid template is as follows
{
"themePrimary": "#d81e05",
"themeLighterAlt": "#fdf5f4",
"themeLighter": "#f9d6d2",
"themeLight": "#f4b4ac",
"themeTertiary": "#e87060",
"themeSecondary": "#dd351e",
"themeDarkAlt": "#c31a04",
"themeDark": "#a51603",
"themeDarker": "#791002",
"neutralLighterAlt": "#eeeeee",
"neutralLighter": "#f5f5f5",
"neutralLight": "#e1e1e1",
"neutralQuaternaryAlt": "#d1d1d1",
"neutralQuaternary": "#c8c8c8",
"neutralTertiaryAlt": "#c0c0c0",
"neutralTertiary": "#c2c2c2",
"neutralSecondary": "#858585",
"neutralPrimaryAlt": "#4b4b4b",
"neutralPrimary": "#333333",
"neutralDark": "#272727",
"black": "#1d1d1d",
"white": "#f5f5f5"
}
Validation checks the following:
#I've extended the spec with which checks the validation should to, to clarify the expectations
I'll take a look at this one 馃槉
Most helpful comment
I'll take a look at this one 馃槉