Skip to content

feat(codegen): generate validated Java code samples - #130

Merged
matoous merged 1 commit into
mainfrom
agent/code-sample-generator
Aug 2, 2026
Merged

feat(codegen): generate validated Java code samples#130
matoous merged 1 commit into
mainfrom
agent/code-sample-generator

Conversation

@matoous

@matoous matoous commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What

  • Add a deterministic, versioned JSON catalog generated from the existing Go codegen model.
  • Emit 47 complete Java programs, including nine named OpenAPI request examples.
  • Add just generate-codesamples, documentation, Gradle compilation against the local SDK, and release-tag synchronization to sumup-developer/src/codesamples/java.json.

Why

The developer portal needs accurate, SDK-native Java samples generated from the same OpenAPI model as the client, without publishing a runtime package.

Validation

  • go test ./...
  • go vet ./...
  • go mod tidy -diff
  • ./gradlew :sumup-sdk:compileCodeSamples
  • ./gradlew spotlessCheck
  • SDK regeneration produced no diff
  • actionlint .github/workflows/release-code-samples.yaml

@matoous matoous self-assigned this Aug 2, 2026
Generate deterministic, versioned Java sample catalogs from the SDK codegen model. Validate every generated program, expose a just recipe, and sync release-tag output to the developer portal.
@matoous
matoous force-pushed the agent/code-sample-generator branch from 0f44c5c to fd4ff7e Compare August 2, 2026 17:58
@matoous
matoous marked this pull request as ready for review August 2, 2026 19:32
@matoous
matoous merged commit b41fe99 into main Aug 2, 2026
14 checks passed
@matoous
matoous deleted the agent/code-sample-generator branch August 2, 2026 19:32
@sumup-release-bot sumup-release-bot Bot mentioned this pull request Jul 30, 2026
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.

1 participant