Skip to content

feat(codegen): generate validated Python code samples - #367

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

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 Python programs, including nine named OpenAPI request examples.
  • Add just generate-codesamples, documentation, CI validation, and release-tag synchronization to sumup-developer/src/codesamples/python.json.

Why

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

Validation

  • go test -race ./...
  • golangci-lint run and go mod tidy -diff
  • syntax, import, and SDK call-signature validation for all generated samples
  • Ruff check and format validation
  • repository typecheck and pytest (9 tests)
  • SDK regeneration produced no diff
  • actionlint

@matoous matoous self-assigned this Aug 2, 2026
@matoous
matoous force-pushed the agent/code-sample-generator branch from 7817a16 to 9c7d391 Compare August 2, 2026 17:58
Generate deterministic, versioned Python 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 9c7d391 to 8b4642f Compare August 2, 2026 19:29
@matoous
matoous marked this pull request as ready for review August 2, 2026 19:29
@matoous
matoous merged commit aebb848 into main Aug 2, 2026
17 checks passed
@matoous
matoous deleted the agent/code-sample-generator branch August 2, 2026 19:34
@sumup-release-bot sumup-release-bot Bot mentioned this pull request Aug 2, 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