diff --git a/Makefile b/Makefile index b746ea6..b00c4da 100644 --- a/Makefile +++ b/Makefile @@ -24,11 +24,6 @@ build: ## Build the command binaries. -ldflags "-X 'github.com/hathora/ci/internal/commands.BuildVersion=${BUILD_VERSION}'" \ hathora/main.go -.PHONY: sdk-clean -sdk-clean: ## Re-generate the SDK using speakeasyapi.dev - rm -rf ./sdk - go generate ./... - .PHONY: lint lint: ## Lints the project, logging any warnings or errors without modifying any files. go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63 diff --git a/gen.yaml b/gen.yaml deleted file mode 100644 index 559d316..0000000 --- a/gen.yaml +++ /dev/null @@ -1,33 +0,0 @@ -configVersion: 2.0.0 -generation: - sdkClassName: SDK - maintainOpenAPIOrder: true - usageSnippets: - optionalPropertyRendering: withExample - useClassNamesForArrayFields: true - fixes: - nameResolutionDec2023: false - parameterOrderingFeb2024: false - requestResponseComponentNamesFeb2024: false - auth: - oAuth2ClientCredentialsEnabled: false -go: - version: 0.4.2 - additionalDependencies: {} - allowUnknownFieldsInWeakUnions: false - clientServerStatusCodesAsErrors: true - flattenGlobalSecurity: false - imports: - option: openapi - paths: - callbacks: models/callbacks - errors: models/sdkerrors - operations: models/operations - shared: models/shared - webhooks: models/webhooks - inputModelSuffix: input - maxMethodParams: 4 - methodArguments: require-security-and-request - outputModelSuffix: output - packageName: github.com/hathora/ci/internal/sdk - responseFormat: envelope diff --git a/internal/doc.go b/internal/doc.go deleted file mode 100644 index 89ee32a..0000000 --- a/internal/doc.go +++ /dev/null @@ -1,3 +0,0 @@ -package internal - -//go:generate speakeasy generate sdk -l go -o ./sdk -s https://hathora.dev/swagger.json