Changelog: API Linting & Postman Generation
New features to the Speakeasy Platform - May 15, 2024
Two exciting new features are coming to Speakeasy this week: API Linting and Postman Collection Generation.
Let’s get into it 👇
API Linting
Where does API developer experience start? SDKs are super important, but they’re the final step in the integration process. The first step is the API itself and making sure that a consistent interface is being exposed. How do you ensure that your API is consistent, especially as the number of developers contributing grows? With an API linter of course!
Now, linters don’t have the greatest reputation in the developer community, but that bad reputation is deserved. Most linters have been a drag on developer productivity. They throw up opaque warnings and unnecessarily block progress on feature development. We saw an opportunity to do better.
We’ve focused on making sure the Speakeasy linter will speed up development, rather than slows it down. Here’s how our linter is different:
- It runs where your work happens:
- Speakeasy CLI
- VS Code extension
- CI/CD pipelines
- The output is human-readable and clearly actionable
- It comes with our robust default ruleset that can be easily customized with spectral rules to match your org’s API style guide.
To get started just update to the latest version of the Speakeasy CLI and run speakeasy lint
.
Postman Collection Generation [Alpha]
Ready your curl requests, because Speakeasy is now able to generate high quality Postman Collections from your OpenAPI document.
Postman Collections facilitate the easy adoption, development, and testing of your APIs. They allow users to understand the API’s capabilities quickly through executing API requests without the need to set up a coding environment.
As with any API artifact, a collection is only as useful as it is up-to-date. Speakeasy’s Postman Collection generation is designed to be a seamless part of your API development workflow.
Collection generation is free while it’s in alpha, so give it a try and let us know what you think!
🚢 Improvements and Bug Fixes 🐛
NOTE
Based on the most recent CLI version: Speakeasy v1.253.3 (opens in a new tab)
The Platform
🚢 Perf: Speed up validation runs by skipping name resolution
Typescript
🧹 Chore: Remove some unused inbound zod types
Terraform
🚢 Feat: Support mapping environment variables to provider configuration
🚢 Feat: Composite Import support
🚢 Feat: Generate import.sh snippets for additional terraform resource documentation
🚢 Feat: Support custom (non generated) resources and datasources being added into the provider
🐛 Fix: always instantiate required arrays to empty slices to avoid null
being sent over the wire
🐛 Fix: extensions being ignored when under an allOf
JavaV2
🚢 Feat: Better examples
C#
🎉 Now in GA! 🎉
🚢 Feat: Retries
🚢 Feat: oneOf (union) support
🧹 Chore: Reduced HttpClient instantiation
Python
🐛 Fix: after_error hook better error handling