Skip to content

Commit 065c49c

Browse files
fix(management_api): fix organization connections empty properties via spec
Add local OpenAPI spec and fix get_connections_response so connections array decodes correctly. API returns connection objects directly; spec had items as connection (wrapper). Use connection_connection schema for get_connections_response.connections items and connection.connection. - Add spec/kinde-management-api-spec.yaml (from api-spec.kinde.com) - Add connection_connection schema; get_connections_response.connections items and connection.connection reference it - Update generate.go to use local spec - Regenerate management_api (ogen) so GetConnectionsResponse.Connections is []ConnectionConnection; no manual oas_* patches Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent dd62a2a commit 065c49c

16 files changed

Lines changed: 13187 additions & 287 deletions

kinde/management_api/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package management_api
22

3-
//go:generate go run github.com/ogen-go/ogen/cmd/ogen --target . -package management_api --clean https://api-spec.kinde.com/kinde-management-api-spec.yaml
3+
//go:generate go run github.com/ogen-go/ogen/cmd/ogen --target . -package management_api --clean spec/kinde-management-api-spec.yaml
44
//go:generate go run fix_optstring.go

kinde/management_api/oas_client_gen.go

Lines changed: 44 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kinde/management_api/oas_handlers_gen.go

Lines changed: 25 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kinde/management_api/oas_interfaces_gen.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)