Automated Code Samples & Overlay Management in Speakeasy Studio!
Streamline your API workflows with automated Code Sample URLs and simplified overlay management in Speakeasy Studio.
Speakeasy is introducing two powerful updates to enhance your API workflows:
β¨ Automated Code Sample URLs
We now provide you with a single, stable URL that automatically displays up-to-date SDK code examples. Simply paste this URL into your documentation platform once, and weβll ensure your code samples stay synchronized with your latest API changes.
π Overlay Management in Speakeasy Studio
You can now edit your OpenAPI specifications directly within Speakeasy Studio, with every change automatically preserved as an overlay. This means you can freely modify your specs in a familiar environment while keeping your source files unchanged.
Automated Code Sample URLs
Automated Code Sample URLs give you a stable, auto-updating link for SDK code samples. All you have to do is drop that link into your docs platform, and your code examples will stay in sync with your API. Behind the scenes, we dynamically generate SDK-specific code snippets using the x-codeSamples extension in your OpenAPI spec, ensuring your documentation always shows the latest, most accurate examples for your developers.
Whatβs New?
- Automated SDK Code Samples: Generate and apply SDK usage examples to your OpenAPI specs effortlessly.
- Seamless Integration: Supported by popular documentation platforms, including Scalar, Bump.sh, Mintlify, Redocly and ReadMe.
- Always Up-to-Date: Automatically syncs with your latest SDK updates, ensuring accurate and consistent code snippets.
How It Works
Speakeasy tracks your base OpenAPI document and overlays containing SDK code samples. When you generate an SDK via GitHub Actions and merge the changes to the main branch, Speakeasy automatically creates a Combined Spec that includes all OpenAPI operations along with the generated x-codeSamples
extensions. These overlays ensure your API documentation includes accurate, language-specific examples tailored to each operation ID.
π Learn more about Automated Code Sample URLs
Overlay Management in Speakeasy Studio
Weβve made managing OpenAPI specs in Speakeasy Studio simpler and more intuitive. Now you can edit your API specs directly in the Studio, and your changes are automatically saved as overlaysβno manual overlay creation needed. This means you can modify your specs without affecting the source, all while staying in the Studio.
Hereβs a quick look at how it works:
Why This Matters
- Edit without worry: Make changes directly to your specs and theyβre automatically saved as overlays
- Stay focused: Manage all your API modifications in one place
- Learn overlays: Get greater visibility into overlay functionality while making edits.
- Automatic SDK regeneration: SDKs are regenerated with each save, ensuring your changes are always reflected.
π Learn More about Overlays
π New Features and Bug Fixes π
Platform
- π Feat: Introduced Automated Code Sample URLs for simplified SDK example management.
- π Feat: Added overlay management to the Speakeasy Studio.
- π Fix: Resolved issues with outdated examples, missing imports, and incorrect status code handling in test and example generation.
- π Fix: Fixed generation of
example.file
during usage snippet generation.
Go
- π Fix: Improved mockserver robustness and union usage templating.
TypeScript
- π Fix: Corrected parameter and global matching for
x-speakeasy-globals
. - π Fix: Ensured dual-module npm packages include correct metadata.
Python
- π Fix: Unpinned Python dependencies to prevent conflicts with newer versions.
- π Fix: Added finalizers to close HTTP clients and prevent memory leaks.
Terraform
- π Feat: Added support for mapping operations to data sources or resources.
- π Feat: Initial support for
x-speakeasy-soft-delete-property
.
PHP
- π Feat: Enabled unions of arrays and circular unions.
- π Fix: Fixed PHP pagination imports and improved consistency in templating.