Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
fix: switch alias to json (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbillman authored Feb 16, 2024
1 parent 43b8673 commit 7a06df9
Show file tree
Hide file tree
Showing 25 changed files with 84 additions and 84 deletions.
2 changes: 1 addition & 1 deletion go/http/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module ftl/http

go 1.22.0

require github.com/TBD54566975/ftl v0.126.0
require github.com/TBD54566975/ftl v0.128.1

require (
connectrpc.com/connect v1.14.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go/http/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
github.com/TBD54566975/ftl v0.126.0 h1:KBrV51p4ZUHSB3qJ21pm5YHdwzGpl6Wrjpy+pJKFCTw=
github.com/TBD54566975/ftl v0.126.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/TBD54566975/ftl v0.128.1 h1:oQCHZ+r3K1lcuMYjoQ3V1E0XD2Rhc5i3psC/4x/Pba4=
github.com/TBD54566975/ftl v0.128.1/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/alecthomas/assert/v2 v2.5.0 h1:OJKYg53BQx06/bMRBSPDCO49CbCDNiUQXwdoNrt6x5w=
github.com/alecthomas/assert/v2 v2.5.0/go.mod h1:fw5suVxB+wfYJ3291t0hRTqtGzFYdSwstnRQdaQx2DM=
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=
Expand Down
24 changes: 12 additions & 12 deletions go/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ import (
)

type GetRequest struct {
UserID string `alias:"userId"`
PostID string `alias:"postId"`
UserID string `json:"userId"`
PostID string `json:"postId"`
}

type Nested struct {
GoodStuff string `alias:"good_stuff"`
GoodStuff string `json:"good_stuff,omitempty"`
}

type GetResponse struct {
Message string `alias:"msg"`
Nested Nested `alias:"nested"`
Message string `json:"msg"`
Nested Nested `json:"nested"`
}

type ErrorResponse struct {
Error string `alias:"error"`
Error string `json:"error"`
}

// Example: curl -i http://localhost:8892/ingress/http/users/123/posts?postId=456
Expand All @@ -52,12 +52,12 @@ func Get(ctx context.Context, req builtin.HttpRequest[GetRequest]) (builtin.Http
}

type PostRequest struct {
UserID int `alias:"user_id"`
PostID int `alias:"post_id"`
UserID int `json:"user_id"`
PostID int `json:"post_id"`
}

type PostResponse struct {
Success bool `alias:"success"`
Success bool `json:"success"`
}

// Example: curl -i --json '{"user_id": 123, "post_id": 345}' http://localhost:8892/ingress/http/users
Expand All @@ -73,8 +73,8 @@ func Post(ctx context.Context, req builtin.HttpRequest[PostRequest]) (builtin.Ht
}

type PutRequest struct {
UserID string `alias:"userId"`
PostID string `alias:"postId"`
UserID string `json:"userId,omitempty"`
PostID string `json:"postId"`
}

type PutResponse struct{}
Expand All @@ -91,7 +91,7 @@ func Put(ctx context.Context, req builtin.HttpRequest[PutRequest]) (builtin.Http
}

type DeleteRequest struct {
UserID string `alias:"userId"`
UserID string `json:"userId"`
}

type DeleteResponse struct{}
Expand Down
24 changes: 12 additions & 12 deletions kotlin/ftl-module-http/src/main/kotlin/ftl/http/Http.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,42 @@ import ftl.builtin.Empty
import ftl.builtin.HttpRequest
import ftl.builtin.HttpResponse
import kotlin.String
import xyz.block.ftl.Alias
import xyz.block.ftl.Json
import xyz.block.ftl.Context
import xyz.block.ftl.HttpIngress
import xyz.block.ftl.Method
import xyz.block.ftl.Verb

data class GetRequest(
@Alias("userId") val userID: String,
@Alias("postId") val postID: String,
@Json("userId") val userID: String,
@Json("postId") val postID: String,
)

data class Nested(
@Alias("good_stuff") val goodStuff: String,
@Json("good_stuff") val goodStuff: String,
)

data class GetResponse(
@Alias("msg") val message: String,
@Alias("nested") val nested: Nested,
@Json("msg") val message: String,
@Json("nested") val nested: Nested,
)

data class PostRequest(
@Alias("user_id") val userId: Int,
@Alias("post_id") val postId: Int,
@Json("user_id") val userId: Int,
@Json("post_id") val postId: Int,
)

data class PostResponse(
@Alias("success") val success: Boolean,
@Json("success") val success: Boolean,
)

data class PutRequest(
@Alias("userId") val userID: String,
@Alias("postId") val postID: String,
@Json("userId") val userID: String,
@Json("postId") val postID: String,
)

data class DeleteRequest(
@Alias("userId") val userID: String,
@Json("userId") val userID: String,
)

// Example: curl -i http://localhost:8892/ingress/http/users/123/posts?postId=456
Expand Down
2 changes: 1 addition & 1 deletion online-boutique/backend/services/ad/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.0
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..

require (
github.com/TBD54566975/ftl v0.126.0
github.com/TBD54566975/ftl v0.128.0
github.com/TBD54566975/ftl/examples/online-boutique v0.0.0-00010101000000-000000000000
golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3
)
Expand Down
4 changes: 2 additions & 2 deletions online-boutique/backend/services/ad/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
github.com/TBD54566975/ftl v0.126.0 h1:KBrV51p4ZUHSB3qJ21pm5YHdwzGpl6Wrjpy+pJKFCTw=
github.com/TBD54566975/ftl v0.126.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/TBD54566975/ftl v0.128.0 h1:XhcFNjpyqrkEQWb4z2u/0opMBJN6OUPi9u+xyubrvtA=
github.com/TBD54566975/ftl v0.128.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/alecthomas/assert/v2 v2.5.0 h1:OJKYg53BQx06/bMRBSPDCO49CbCDNiUQXwdoNrt6x5w=
github.com/alecthomas/assert/v2 v2.5.0/go.mod h1:fw5suVxB+wfYJ3291t0hRTqtGzFYdSwstnRQdaQx2DM=
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=
Expand Down
2 changes: 1 addition & 1 deletion online-boutique/backend/services/cart/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.0
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..

require (
github.com/TBD54566975/ftl v0.126.0
github.com/TBD54566975/ftl v0.128.0
github.com/hashicorp/golang-lru/v2 v2.0.7
)

Expand Down
4 changes: 2 additions & 2 deletions online-boutique/backend/services/cart/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
github.com/TBD54566975/ftl v0.126.0 h1:KBrV51p4ZUHSB3qJ21pm5YHdwzGpl6Wrjpy+pJKFCTw=
github.com/TBD54566975/ftl v0.126.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/TBD54566975/ftl v0.128.0 h1:XhcFNjpyqrkEQWb4z2u/0opMBJN6OUPi9u+xyubrvtA=
github.com/TBD54566975/ftl v0.128.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/alecthomas/assert/v2 v2.5.0 h1:OJKYg53BQx06/bMRBSPDCO49CbCDNiUQXwdoNrt6x5w=
github.com/alecthomas/assert/v2 v2.5.0/go.mod h1:fw5suVxB+wfYJ3291t0hRTqtGzFYdSwstnRQdaQx2DM=
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=
Expand Down
2 changes: 1 addition & 1 deletion online-boutique/backend/services/checkout/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type Order struct {
}

type ErrorResponse struct {
Message string `alias:"message"`
Message string `json:"message"`
}

//ftl:verb
Expand Down
2 changes: 1 addition & 1 deletion online-boutique/backend/services/checkout/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.0
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..

require (
github.com/TBD54566975/ftl v0.126.0
github.com/TBD54566975/ftl v0.128.0
github.com/TBD54566975/ftl/examples/online-boutique v0.0.0-00010101000000-000000000000
github.com/google/uuid v1.6.0
)
Expand Down
4 changes: 2 additions & 2 deletions online-boutique/backend/services/checkout/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
github.com/TBD54566975/ftl v0.126.0 h1:KBrV51p4ZUHSB3qJ21pm5YHdwzGpl6Wrjpy+pJKFCTw=
github.com/TBD54566975/ftl v0.126.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/TBD54566975/ftl v0.128.0 h1:XhcFNjpyqrkEQWb4z2u/0opMBJN6OUPi9u+xyubrvtA=
github.com/TBD54566975/ftl v0.128.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/alecthomas/assert/v2 v2.5.0 h1:OJKYg53BQx06/bMRBSPDCO49CbCDNiUQXwdoNrt6x5w=
github.com/alecthomas/assert/v2 v2.5.0/go.mod h1:fw5suVxB+wfYJ3291t0hRTqtGzFYdSwstnRQdaQx2DM=
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=
Expand Down
2 changes: 1 addition & 1 deletion online-boutique/backend/services/currency/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.0
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..

require (
github.com/TBD54566975/ftl v0.126.0
github.com/TBD54566975/ftl v0.128.0
github.com/TBD54566975/ftl/examples/online-boutique v0.0.0-00010101000000-000000000000
golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3
)
Expand Down
4 changes: 2 additions & 2 deletions online-boutique/backend/services/currency/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
github.com/TBD54566975/ftl v0.126.0 h1:KBrV51p4ZUHSB3qJ21pm5YHdwzGpl6Wrjpy+pJKFCTw=
github.com/TBD54566975/ftl v0.126.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/TBD54566975/ftl v0.128.0 h1:XhcFNjpyqrkEQWb4z2u/0opMBJN6OUPi9u+xyubrvtA=
github.com/TBD54566975/ftl v0.128.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/alecthomas/assert/v2 v2.5.0 h1:OJKYg53BQx06/bMRBSPDCO49CbCDNiUQXwdoNrt6x5w=
github.com/alecthomas/assert/v2 v2.5.0/go.mod h1:fw5suVxB+wfYJ3291t0hRTqtGzFYdSwstnRQdaQx2DM=
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=
Expand Down
2 changes: 1 addition & 1 deletion online-boutique/backend/services/payment/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.0
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..

require (
github.com/TBD54566975/ftl v0.126.0
github.com/TBD54566975/ftl v0.128.0
github.com/google/uuid v1.6.0
)

Expand Down
4 changes: 2 additions & 2 deletions online-boutique/backend/services/payment/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
github.com/TBD54566975/ftl v0.126.0 h1:KBrV51p4ZUHSB3qJ21pm5YHdwzGpl6Wrjpy+pJKFCTw=
github.com/TBD54566975/ftl v0.126.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/TBD54566975/ftl v0.128.0 h1:XhcFNjpyqrkEQWb4z2u/0opMBJN6OUPi9u+xyubrvtA=
github.com/TBD54566975/ftl v0.128.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/alecthomas/assert/v2 v2.5.0 h1:OJKYg53BQx06/bMRBSPDCO49CbCDNiUQXwdoNrt6x5w=
github.com/alecthomas/assert/v2 v2.5.0/go.mod h1:fw5suVxB+wfYJ3291t0hRTqtGzFYdSwstnRQdaQx2DM=
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=
Expand Down
2 changes: 1 addition & 1 deletion online-boutique/backend/services/payment/payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

type ErrorResponse struct {
Message string `alias:"message"`
Message string `json:"message"`
}

type CreditCardInfo struct {
Expand Down
2 changes: 1 addition & 1 deletion online-boutique/backend/services/productcatalog/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.0
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..

require (
github.com/TBD54566975/ftl v0.126.0
github.com/TBD54566975/ftl v0.128.0
github.com/TBD54566975/ftl/examples/online-boutique v0.0.0-00010101000000-000000000000
)

Expand Down
4 changes: 2 additions & 2 deletions online-boutique/backend/services/productcatalog/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
github.com/TBD54566975/ftl v0.126.0 h1:KBrV51p4ZUHSB3qJ21pm5YHdwzGpl6Wrjpy+pJKFCTw=
github.com/TBD54566975/ftl v0.126.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/TBD54566975/ftl v0.128.0 h1:XhcFNjpyqrkEQWb4z2u/0opMBJN6OUPi9u+xyubrvtA=
github.com/TBD54566975/ftl v0.128.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/alecthomas/assert/v2 v2.5.0 h1:OJKYg53BQx06/bMRBSPDCO49CbCDNiUQXwdoNrt6x5w=
github.com/alecthomas/assert/v2 v2.5.0/go.mod h1:fw5suVxB+wfYJ3291t0hRTqtGzFYdSwstnRQdaQx2DM=
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type ListResponse struct {
}

type ErrorResponse struct {
Message string `alias:"message"`
Message string `json:"message"`
}

//ftl:verb
Expand Down
2 changes: 1 addition & 1 deletion online-boutique/backend/services/recommendation/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.0

replace github.com/TBD54566975/ftl/examples/online-boutique => ../..

require github.com/TBD54566975/ftl v0.126.0
require github.com/TBD54566975/ftl v0.128.0

require (
connectrpc.com/connect v1.14.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions online-boutique/backend/services/recommendation/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
github.com/TBD54566975/ftl v0.126.0 h1:KBrV51p4ZUHSB3qJ21pm5YHdwzGpl6Wrjpy+pJKFCTw=
github.com/TBD54566975/ftl v0.126.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/TBD54566975/ftl v0.128.0 h1:XhcFNjpyqrkEQWb4z2u/0opMBJN6OUPi9u+xyubrvtA=
github.com/TBD54566975/ftl v0.128.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/alecthomas/assert/v2 v2.5.0 h1:OJKYg53BQx06/bMRBSPDCO49CbCDNiUQXwdoNrt6x5w=
github.com/alecthomas/assert/v2 v2.5.0/go.mod h1:fw5suVxB+wfYJ3291t0hRTqtGzFYdSwstnRQdaQx2DM=
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type ListResponse struct {
}

type ErrorResponse struct {
Message string `alias:"message"`
Message string `json:"message"`
}

//ftl:verb
Expand Down
2 changes: 1 addition & 1 deletion online-boutique/backend/services/shipping/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.0

replace github.com/TBD54566975/ftl/examples/online-boutique => ../..

require github.com/TBD54566975/ftl v0.126.0
require github.com/TBD54566975/ftl v0.128.0

require (
connectrpc.com/connect v1.14.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions online-boutique/backend/services/shipping/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
github.com/TBD54566975/ftl v0.126.0 h1:KBrV51p4ZUHSB3qJ21pm5YHdwzGpl6Wrjpy+pJKFCTw=
github.com/TBD54566975/ftl v0.126.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/TBD54566975/ftl v0.128.0 h1:XhcFNjpyqrkEQWb4z2u/0opMBJN6OUPi9u+xyubrvtA=
github.com/TBD54566975/ftl v0.128.0/go.mod h1:Bu14npLonDVivxgmKEsas49qzLOf3yrfB4KrM6Ey4RE=
github.com/alecthomas/assert/v2 v2.5.0 h1:OJKYg53BQx06/bMRBSPDCO49CbCDNiUQXwdoNrt6x5w=
github.com/alecthomas/assert/v2 v2.5.0/go.mod h1:fw5suVxB+wfYJ3291t0hRTqtGzFYdSwstnRQdaQx2DM=
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=
Expand Down
Loading

0 comments on commit 7a06df9

Please sign in to comment.