Skip to content

fix: Update client gen#6

Merged
kodiakhq[bot] merged 1 commit into
mainfrom
fix/update-client-gen
Jun 26, 2025
Merged

fix: Update client gen#6
kodiakhq[bot] merged 1 commit into
mainfrom
fix/update-client-gen

Conversation

@disq

@disq disq commented Jun 26, 2025

Copy link
Copy Markdown
Member

Updates client generation to be on par with other places.
Combines models and client files.

Uses the updated spec.json from the clean up PR in the platform.

@disq disq requested a review from hermanschaaf June 26, 2025 11:52
@disq disq force-pushed the fix/update-client-gen branch from ec5ccdc to 0415cdf Compare June 26, 2025 12:34
@disq disq added the automerge Add to automerge PRs once requirements are met label Jun 26, 2025
Comment thread Makefile
Comment on lines -11 to -20
@command -v openapi-generator >/dev/null 2>&1 || { \
echo "Error: 'openapi-generator' command not found. Please install it before running convert-spec."; \
echo "On MacOS you can use Homebrew: brew install openapi-generator"; \
echo "You can install it by following the instructions at: https://github.com/OpenAPITools/openapi-generator?tab=readme-ov-file#1---installation"; \
exit 1; \
}
openapi-generator generate -g openapi -i spec.json -o .openapi-tmp
mv .openapi-tmp/openapi.json spec.json
rm -rf .openapi-tmp
go generate ./... No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep this? I think it was there to prevent a run of this wiping out your local changes to yaml files that you forgot to include in a path

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go generate only generates (client|models).gen.go and doesn't touch any files otherwise I think.
The wiping happens with redocly.

@kodiakhq kodiakhq Bot merged commit 719763f into main Jun 26, 2025
5 checks passed
@cq-bot cq-bot mentioned this pull request Jun 26, 2025
@disq disq deleted the fix/update-client-gen branch June 26, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Add to automerge PRs once requirements are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants