Home / Companies / Speakeasy / Blog / May 2024

May 2024 Summaries

7 posts from Speakeasy

Filter
Month: Year:
Post Summaries Back to Blog
Speakeasy is introducing two new features designed to enhance API management: API Change Detection and Open Enum support. API Change Detection aims to alleviate the challenges associated with unintended breaking changes by automatically detecting modifications in OpenAPI documents and notifying developers, with changes highlighted in pull requests and detailed breakdowns available on a dashboard. Open Enum support addresses the rigidity of traditional enums by allowing unknown values to pass through without causing errors, thus making API evolution smoother, particularly in rapidly changing environments. This feature is now supported in TypeScript, Python, and Go through the x-speakeasy-unknown-values extension, allowing for more flexible and error-resistant code. Additionally, the platform has made improvements and bug fixes across various programming languages, ensuring more robust and efficient SDK functionality.
May 29, 2024 657 words in the original blog post.
Speakeasy has introduced an open-source reference guide for writing OpenAPI specifications, offering an AI-powered search feature to enhance user experience. This guide emphasizes the importance of OpenAPI in maintaining consistent API design across various surfaces like documentation and SDKs, transforming a SaaS business into a platform by providing a unified view of errors, responses, and parameters. OpenAPI, a standardized document structure for describing HTTP APIs, is written in JSON or YAML, serving as a blueprint for generating API documentation and SDKs. The document outlines essential elements such as security requirements, endpoints, and reusable components, improving readability and maintainability. While the guide covers OpenAPI versions 3.0.x and 3.1.x, it recommends version 3.1 for its compatibility with JSON Schema, which expands the tool and library ecosystem available to developers. The documentation is designed for developers at any skill level, focusing on practical application rather than technical completeness, and it highlights differences between the versions when necessary.
May 17, 2024 1,220 words in the original blog post.
Speakeasy introduces two new features aimed at enhancing API development: API Linting and Postman Collection Generation. The API Linting feature is designed to improve developer productivity by offering a more efficient and user-friendly linter that integrates smoothly with tools like the Speakeasy CLI, VS Code extension, and CI/CD pipelines, providing a customizable ruleset for consistent API interfaces. Meanwhile, the Postman Collection Generation allows developers to create up-to-date Postman Collections from OpenAPI documents, facilitating easy API adoption and testing without needing a coding environment. These features are part of Speakeasy's ongoing effort to improve the API development workflow, accompanied by various improvements and bug fixes across different platforms and languages, including performance enhancements and feature additions in Terraform, Java, C#, and Python.
May 15, 2024 477 words in the original blog post.
Speakeasy has introduced support for "open" enums in their Go, Python, and TypeScript SDK generators to accommodate evolving APIs without causing dependency management issues for users. Traditional "closed" enums restrict values to a predefined set, posing challenges when APIs are updated with new values, such as adding a new category in a content management system API. By using the x-speakeasy-unknown-values extension in OpenAPI, developers can mark certain enums as open, allowing for unrecognized values to be handled gracefully. This approach ensures that SDKs remain functional and type-safe even as APIs evolve, while maintaining a robust developer experience with features like editor auto-complete. This enhancement aims to address longstanding challenges in handling enums within APIs, providing a flexible solution that allows API evolution without disrupting existing users.
May 15, 2024 1,616 words in the original blog post.
Postman, a renowned tool for API development and testing, faces challenges in maintaining up-to-date Postman Collections due to manual updating's time-consuming and error-prone nature. To address this, a new Postman Generator has been announced, allowing for the automatic generation of high-quality Postman Collections using existing OpenAPI documents, extensions, and workflows. This automated process keeps collections synchronized with API changes, reducing manual effort and errors while enhancing accuracy and consistency. The generator utilizes GitHub actions to automate the process, ensuring collections accurately reflect APIs and serve as both a testing framework and documentation tool, which is particularly beneficial for onboarding and external users. The Speakeasy OpenAPI feature set provides extensive customization and functionality, surpassing existing automated solutions by saving time and improving reliability.
May 08, 2024 555 words in the original blog post.
Speakeasy has achieved a significant milestone with the general availability of its C# SDK, marking over half of the languages it supports as stable and fully featured. This release includes configurable support for .NET 5.X and above, async/await, OAuth2.0, and support for complex number types, among other features, with a focus on strong typing through IntelliSense. Speakeasy has also introduced Speakeasy Ask, an AI-enhanced command-line interface that allows users to query their OpenAPI specifications and SDKs directly within the CLI, thus streamlining workflow by eliminating the need to switch between windows. The latest CLI version, Speakeasy v1.277.4, brings various improvements and bug fixes across multiple languages, including better error handling, enhanced performance in operations like validation, and support for unions as errors, alongside updates to ensure compatibility and improved usability in Python, Golang, Java, C#, TypeScript, and Terraform.
May 01, 2024 461 words in the original blog post.
In a detailed exploration of building a Software Development Kit (SDK) in PHP, this tutorial by Steve McDougall outlines the critical decisions and steps involved in creating a developer-friendly SDK for a fictional e-commerce startup's API. The focus is on enhancing the developer experience by ensuring compatibility, limiting dependencies, and providing clear, programmatic control over API interactions. Key elements include designing resources, handling HTTP requests and responses using PSR standards, implementing authentication, and facilitating pagination and data handling through DTOs. The tutorial emphasizes the importance of balancing opinionation and flexibility, showcasing how to maintain interoperability with the PHP ecosystem while offering detailed insights into building and testing the SDK. Finally, it discusses the potential of using Speakeasy's approach to automatically generate robust SDKs from an OpenAPI specification, highlighting the benefits of focusing on creating a strong API specification while leveraging tools for SDK development.
May 01, 2024 6,862 words in the original blog post.