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