QueryLibrary: Added IsVisibility property to Query data (#104579)
* QueryLibrary: Added IsVisibility property to Query data * Added asserts for unit test * generated openapi changes
This commit is contained in:
@@ -14,6 +14,9 @@ type QueryTemplate struct {
|
||||
// Longer description for why it is interesting
|
||||
Description string `json:"description,omitempty"`
|
||||
|
||||
// Toggle for visible/hidden queries
|
||||
IsVisible bool `json:"isVisible,omitempty"`
|
||||
|
||||
// The variables that can be used to render
|
||||
// +listType=map
|
||||
// +listMapKey=key
|
||||
|
||||
@@ -400,6 +400,13 @@ func schema_apis_query_v0alpha1_template_QueryTemplate(ref common.ReferenceCallb
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"isVisible": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Toggle for visible/hidden queries",
|
||||
Type: []string{"boolean"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"vars": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
|
||||
Reference in New Issue
Block a user