Skip to content

feat(golang): implement multi-version support#237

Open
rubenhoenle wants to merge 4 commits intomainfrom
multi-version
Open

feat(golang): implement multi-version support#237
rubenhoenle wants to merge 4 commits intomainfrom
multi-version

Conversation

@rubenhoenle
Copy link
Member

relates to STACKITSDK-294 and STACKITSDK-297

@rubenhoenle rubenhoenle self-assigned this Feb 25, 2026
@rubenhoenle rubenhoenle requested a review from a team as a code owner February 25, 2026 17:06
relates to STACKITSDK-294 and STACKITSDK-297
# Generate SDK for each service
for service_json in ${ROOT_DIR}/oas/legacy/*.json; do
service="${service_json##*/}"
for service_dir in "${ROOT_DIR}/oas/services"/*; do
Copy link
Contributor

Choose a reason for hiding this comment

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

should we still filter for .json extension?

Copy link
Member Author

@rubenhoenle rubenhoenle Feb 27, 2026

Choose a reason for hiding this comment

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

This for statement is to overate over all the service directories (iaas, postgresflex, ...).

Could you elaborate why/how we should filter for .json extensions here? 😅

@cgoetz-inovex
Copy link
Contributor

general comment regarding deprecation: could we have deprecated the whole package instead?

@rubenhoenle
Copy link
Member Author

rubenhoenle commented Feb 27, 2026

general comment regarding deprecation: could we have deprecated the whole package instead?

If I got it correctly you can deprecate a whole package in Golang by doing this

// Deprecated
package foobar

See https://go.dev/wiki/Deprecated for reference.

Edit: I marked everything in the compatibility layer deprecated (additionally to the package deprecation) to make it more explicit.

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