Skip to content

Commit

Permalink
Support ndc-spec 0.1.4 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac authored Jun 12, 2024
1 parent 534ebf2 commit b675a1c
Show file tree
Hide file tree
Showing 15 changed files with 534 additions and 121 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All functions of the Connector interface are analogous to their Rust counterpart

## Features

The SDK fully supports [NDC Specification v0.1.3](https://hasura.github.io/ndc-spec/specification/changelog.html#013) and [Connector Deployment spec](https://github.com/hasura/ndc-hub/blob/main/rfcs/0000-deployment.md) with following features:
The SDK fully supports [NDC Specification v0.1.4](https://hasura.github.io/ndc-spec/specification/changelog.html#014) and [Connector Deployment spec](https://github.com/hasura/ndc-hub/blob/main/rfcs/0000-deployment.md) with following features:

- Connector HTTP server
- Authentication
Expand Down
2 changes: 1 addition & 1 deletion cmd/hasura-ndc-go/templates/new/connector.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

var connectorCapabilities = schema.CapabilitiesResponse{
Version: "0.1.3",
Version: "0.1.4",
Capabilities: schema.Capabilities{
Query: schema.QueryCapabilities{
Variables: schema.LeafCapability{},
Expand Down
2 changes: 1 addition & 1 deletion cmd/hasura-ndc-go/testdata/basic/source/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

var connectorCapabilities = schema.CapabilitiesResponse{
Version: "0.1.3",
Version: "0.1.4",
Capabilities: schema.Capabilities{
Query: schema.QueryCapabilities{
Variables: schema.LeafCapability{},
Expand Down
2 changes: 1 addition & 1 deletion cmd/hasura-ndc-go/testdata/empty/source/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

var connectorCapabilities = schema.CapabilitiesResponse{
Version: "0.1.3",
Version: "0.1.4",
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 @@ -9,7 +9,7 @@ import (
)

var connectorCapabilities = schema.CapabilitiesResponse{
Version: "0.1.3",
Version: "0.1.4",
Capabilities: schema.Capabilities{
Query: schema.QueryCapabilities{
Variables: schema.LeafCapability{},
Expand Down
2 changes: 1 addition & 1 deletion example/codegen/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
mkdir -p ./dist

if [ ! -f ./dist/ndc-test ]; then
curl -L https://github.com/hasura/ndc-spec/releases/download/v0.1.3/ndc-test-x86_64-unknown-linux-gnu -o ./dist/ndc-test
curl -L https://github.com/hasura/ndc-spec/releases/download/v0.1.4/ndc-test-x86_64-unknown-linux-gnu -o ./dist/ndc-test
chmod +x ./dist/ndc-test
fi

Expand Down
2 changes: 1 addition & 1 deletion example/codegen/testdata/capabilities
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.3",
"version": "0.1.4",
"capabilities": {
"query": {
"variables": {}
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.CapabilitiesResponseMarshaler {
return &schema.CapabilitiesResponse{
Version: "0.1.3",
Version: "0.1.4",
Capabilities: schema.Capabilities{
Query: schema.QueryCapabilities{
Aggregates: schema.LeafCapability{},
Expand Down
2 changes: 1 addition & 1 deletion example/reference/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/rs/zerolog"
)

const test_SpecVersion = "v0.1.3"
const test_SpecVersion = "v0.1.4"

func createTestServer(t *testing.T) *connector.Server[Configuration, State] {
server, err := connector.NewServer[Configuration, State](&Connector{}, &connector.ServerOptions{
Expand Down
4 changes: 2 additions & 2 deletions example/reference/testdata/capabilities
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.3",
"version": "0.1.4",
"capabilities": {
"query": {
"aggregates": {},
Expand All @@ -15,4 +15,4 @@
"order_by_aggregate": {}
}
}
}
}
Loading

0 comments on commit b675a1c

Please sign in to comment.