Some fields like refresh on the dashboard kind are a union of different types. They are missing from the generated code.
The generated output could be either:
An Any type that could hold anything (we could still add validation function)
Make multiple mutually exclusive fields for every type (i.e. for the refresh field, have a refresh_duration of type string and refresh_set of type boolean and if refresh_set is set to false, refresh_duration must be empty).
Some fields like
refresh
on the dashboard kind are a union of different types. They are missing from the generated code.The generated output could be either:
refresh
field, have arefresh_duration
of type string andrefresh_set
of type boolean and ifrefresh_set
is set tofalse
,refresh_duration
must be empty).