mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Schema: Fix interfaces with blank spaces (#62144)
Fixes interfaces with blank spaces
This commit is contained in:
@@ -86,7 +86,7 @@ func main() {
|
|||||||
func adaptToPipeline(j codejen.OneToOne[corecodegen.SchemaForGen]) codejen.OneToOne[*pfs.PluginDecl] {
|
func adaptToPipeline(j codejen.OneToOne[corecodegen.SchemaForGen]) codejen.OneToOne[*pfs.PluginDecl] {
|
||||||
return codejen.AdaptOneToOne(j, func(pd *pfs.PluginDecl) corecodegen.SchemaForGen {
|
return codejen.AdaptOneToOne(j, func(pd *pfs.PluginDecl) corecodegen.SchemaForGen {
|
||||||
return corecodegen.SchemaForGen{
|
return corecodegen.SchemaForGen{
|
||||||
Name: pd.PluginMeta.Name,
|
Name: strings.ReplaceAll(pd.PluginMeta.Name, " ", ""),
|
||||||
Schema: pd.Lineage.Latest(),
|
Schema: pd.Lineage.Latest(),
|
||||||
IsGroup: pd.SchemaInterface.IsGroup(),
|
IsGroup: pd.SchemaInterface.IsGroup(),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user