Skip to content

Commit

Permalink
fix: schema get --json (#4421)
Browse files Browse the repository at this point in the history
Fixes #4411
  • Loading branch information
jvmakine authored Feb 14, 2025
1 parent 161784e commit fb0607a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/ftl/cmd_schema_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func (g *getSchemaCmd) generateJSON(resp *connect.ServerStreamForClient[ftlv1.Pu
}

schema := &schemapb.Schema{}
msgloop:
for resp.Receive() {
msg := resp.Msg()

Expand All @@ -96,8 +97,8 @@ func (g *getSchemaCmd) generateJSON(resp *connect.ServerStreamForClient[ftlv1.Pu
schema.Modules = append(schema.Modules, module)
delete(remainingNames, module.Name)
}
break
}
break msgloop
default:
// Ignore for now
}
Expand Down

0 comments on commit fb0607a

Please sign in to comment.