Skip to content

[codex] Generate SDK snippets from OpenAPI examples#265

Merged
HavenDV merged 8 commits intomainfrom
codex/issue-237-sdk-snippets
Apr 11, 2026
Merged

[codex] Generate SDK snippets from OpenAPI examples#265
HavenDV merged 8 commits intomainfrom
codex/issue-237-sdk-snippets

Conversation

@HavenDV
Copy link
Copy Markdown
Collaborator

@HavenDV HavenDV commented Apr 9, 2026

Summary

  • generate an autosdk.generated-examples.json manifest from OpenAPI request and response examples
  • synthesize C# SDK snippets when the request shape is clear and fall back to .http snippets otherwise
  • teach autosdk docs sync to merge generated snippets with handwritten examples and preserve per-example language/setup metadata
  • add focused unit and CLI integration coverage for snippet generation and docs sync

Validation

  • dotnet test src/tests/AutoSDK.UnitTests/AutoSDK.UnitTests.csproj --filter "FullyQualifiedName~SnippetGenerationTests|FullyQualifiedName~DocsSyncTests"
  • dotnet test src/tests/AutoSDK.UnitTests/AutoSDK.UnitTests.csproj --filter "FullyQualifiedName~HttpTests|FullyQualifiedName~Tests.ExtensionParsing"
  • dotnet test src/tests/AutoSDK.IntegrationTests.Cli/AutoSDK.IntegrationTests.Cli.csproj --filter "FullyQualifiedName~Generate_WithOpenApiExamples_EmitsGeneratedSnippetManifest"
  • dotnet build src/libs/AutoSDK.CLI/AutoSDK.CLI.csproj /p:TreatWarningsAsErrors=true

Closes #237

@HavenDV HavenDV marked this pull request as ready for review April 11, 2026 01:16
@HavenDV HavenDV merged commit d74b38c into main Apr 11, 2026
3 checks passed
@HavenDV HavenDV deleted the codex/issue-237-sdk-snippets branch April 11, 2026 01:29
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.

Generate SDK code snippets from OpenAPI examples and keep docs in sync

1 participant