feat: new sdk reference with snippets#2552
Conversation
Replaces the auto-generated axios/curl examples in the OpenAPI reference with idiomatic snippets pulled directly from the Ory SDK clients (@ory/client TypeScript and client-go). - Add scripts/inject-sdk-code-samples.mjs: reads TypeScript request interfaces from the TS SDK and Go examples from the pre-generated docs in the Go SDK (sdk/clients/client/go/docs/), then writes x-codeSamples into src/static/api.json for all 149 operations - Configure docusaurus.config.ts: add TypeScript and Go language tabs with correct codeSampleLanguage matching; include all Postman languages for the interactive explorer - Swizzle CodeSnippets and CodeTabs theme components to guard against empty variants arrays crashing <Tabs> - Regenerate docs/reference/openapi/ MDX from the updated spec Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Related Issue or Design Document
Checklist
If this pull request addresses a security vulnerability,
I confirm that I got approval (please contact security@ory.com) from the maintainers to push the changes.
Further comments