Skip to content

Commit

Permalink
fix validation also for MakeGRPCServerCommand (#242)
Browse files Browse the repository at this point in the history
* fix validation also for MakeGRPCServerCommand

* MakeCapabilitiesCommand should also use the default fields
  • Loading branch information
btipling authored Oct 9, 2024
1 parent 21246d0 commit b7cdd99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func DefineConfiguration(
Use: "_connector-service",
Short: "Start the connector service",
Hidden: true,
RunE: cli.MakeGRPCServerCommand(ctx, connectorName, v, schema, connector),
RunE: cli.MakeGRPCServerCommand(ctx, connectorName, v, confschema, connector),
}
err = setFlagsAndConstraints(grpcServerCmd, schema)
if err != nil {
Expand All @@ -89,7 +89,7 @@ func DefineConfiguration(
capabilitiesCmd := &cobra.Command{
Use: "capabilities",
Short: "Get connector capabilities",
RunE: cli.MakeCapabilitiesCommand(ctx, connectorName, v, schema, connector),
RunE: cli.MakeCapabilitiesCommand(ctx, connectorName, v, confschema, connector),
}
err = setFlagsAndConstraints(capabilitiesCmd, schema)
if err != nil {
Expand Down

0 comments on commit b7cdd99

Please sign in to comment.