Schema: Fix interfaces with blank spaces (#62144)

Fixes interfaces with blank spaces
state-history-sql
Selene 2 years ago committed by GitHub
parent 069dc2d357
commit 3c073b00ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/plugins/gen.go

@ -86,7 +86,7 @@ func main() {
func adaptToPipeline(j codejen.OneToOne[corecodegen.SchemaForGen]) codejen.OneToOne[*pfs.PluginDecl] {
return codejen.AdaptOneToOne(j, func(pd *pfs.PluginDecl) corecodegen.SchemaForGen {
return corecodegen.SchemaForGen{
Name: pd.PluginMeta.Name,
Name: strings.ReplaceAll(pd.PluginMeta.Name, " ", ""),
Schema: pd.Lineage.Latest(),
IsGroup: pd.SchemaInterface.IsGroup(),
}

Loading…
Cancel
Save