Skip to content

Commit

Permalink
fix invalid capabilities version (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac authored Mar 12, 2024
1 parent 847b0af commit 2a2e4d0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OUTPUT_DIR := _output
typegen:
cd typegen && ./regenerate-schema.sh

.PHONY: typegen
.PHONY: format
format:
gofmt -w -s .

Expand All @@ -29,7 +29,7 @@ build-codegen:
cd ./cmd/ndc-go-sdk && go build -o ../../_output/hasura-ndc-go .

# build the build-codegen cli for all given platform/arch
.PHONY: build-codegen
.PHONY: ci-build-codegen
ci-build-codegen: export CGO_ENABLED=0
ci-build-codegen: clean
cd ./cmd/ndc-go-sdk && \
Expand Down
2 changes: 1 addition & 1 deletion cmd/ndc-go-sdk/templates/new/connector.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (mc *Connector) HealthCheck(ctx context.Context, configuration *types.Confi
// GetCapabilities get the connector's capabilities.
func (mc *Connector) GetCapabilities(configuration *types.Configuration) *schema.CapabilitiesResponse {
return &schema.CapabilitiesResponse{
Version: "^0.1.0",
Version: "0.1.0",
Capabilities: schema.Capabilities{
Query: schema.QueryCapabilities{
Variables: schema.LeafCapability{},
Expand Down
2 changes: 1 addition & 1 deletion example/codegen/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (mc *Connector) HealthCheck(ctx context.Context, configuration *types.Confi
// GetCapabilities get the connector's capabilities.
func (mc *Connector) GetCapabilities(configuration *types.Configuration) *schema.CapabilitiesResponse {
return &schema.CapabilitiesResponse{
Version: "^0.1.0",
Version: "0.1.0",
Capabilities: schema.Capabilities{
Query: schema.QueryCapabilities{
Variables: schema.LeafCapability{},
Expand Down
2 changes: 1 addition & 1 deletion example/reference/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (mc *Connector) HealthCheck(ctx context.Context, configuration *Configurati

func (mc *Connector) GetCapabilities(configuration *Configuration) *schema.CapabilitiesResponse {
return &schema.CapabilitiesResponse{
Version: "^0.1.0",
Version: "0.1.0",
Capabilities: schema.Capabilities{
Query: schema.QueryCapabilities{
Aggregates: schema.LeafCapability{},
Expand Down

0 comments on commit 2a2e4d0

Please sign in to comment.