From ac0bc4af9d87152c0e2fca5e22a0d5df9296de17 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 24 Sep 2024 04:55:27 -0700 Subject: fix dependencies Signed-off-by: Xe Iaso --- cmd/fabricate-generation/main.go | 2 +- cmd/twirp-openapi-gen/internal/generator/testdata/doc.json | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/fabricate-generation/main.go b/cmd/fabricate-generation/main.go index 949b411..c77591d 100644 --- a/cmd/fabricate-generation/main.go +++ b/cmd/fabricate-generation/main.go @@ -14,8 +14,8 @@ import ( "path/filepath" "strings" + "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/s3" - "github.com/aws/aws-sdk-go/aws" "github.com/facebookgo/flagenv" _ "github.com/joho/godotenv/autoload" "golang.org/x/oauth2" diff --git a/cmd/twirp-openapi-gen/internal/generator/testdata/doc.json b/cmd/twirp-openapi-gen/internal/generator/testdata/doc.json index afe6c6d..8f6df0f 100644 --- a/cmd/twirp-openapi-gen/internal/generator/testdata/doc.json +++ b/cmd/twirp-openapi-gen/internal/generator/testdata/doc.json @@ -10,6 +10,10 @@ }, "type": "object" }, + "google.protobuf.Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:", + "type": "object" + }, "google.protobuf.ListValue": { "description": "\nListValue is a wrapper around a repeated field of values.\nThe JSON representation for ListValue is JSON array.\n", "items": { @@ -294,7 +298,11 @@ "responses": { "200": { "content": { - "application/json": {} + "application/json": { + "schema": { + "$ref": "#/components/schemas/google.protobuf.Empty" + } + } }, "description": "Success" } -- cgit v1.2.3