Skip to content

Conversation

@35C4n0r
Copy link
Collaborator

@35C4n0r 35C4n0r commented Oct 9, 2025

Description

In https://github.com/35C4n0r/agentapi-sdk-go, the tool openapi-codegen is only compatible with openapi-3.0.

ref: coder/agentapi-sdk-go#1
ref: #59 (comment)

@35C4n0r 35C4n0r requested review from johnstcn and matifali October 9, 2025 16:49
@35C4n0r 35C4n0r self-assigned this Oct 9, 2025
@github-actions
Copy link

github-actions bot commented Oct 9, 2025

✅ Preview binaries are ready!

To test with modules: agentapi_version = "agentapi_121" or download from: https://github.com/coder/agentapi/releases/tag/agentapi_121

@johnstcn
Copy link
Member

This is the recommendation from running oapi-codegen:

$ go run github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected]     -package gen     -generate types,client     -o api.gen.go     openapi-3.0.json
WARNING: You are using an OpenAPI 3.1.x specification, which is not yet supported by oapi-codegen (https://github.com/oapi-codegen/oapi-codegen/issues/373) and so some functionality may not be available. Until oapi-codegen supports OpenAPI 3.1, it is recommended to downgrade your spec to 3.0.x

It doesn't look like updated support will be coming any time soon.

@35C4n0r 35C4n0r merged commit 1d5555d into coder:main Oct 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants