December 2022 Summaries
5 posts from Speakeasy
Filter
Month:
Year:
Post Summaries
Back to Blog
The blog post explores the growing popularity of HashiCorp Configuration Language (HCL) and Terraform in infrastructure as code (IaC) practices, highlighting how companies are leveraging Terraform providers to manage API resources alongside associated infrastructure. The text introduces an initiative by Speakeasy to automate the generation of Terraform providers from OpenAPI definitions by adding specific annotations, simplifying the process of creating, updating, and managing resources within APIs. The post also mentions new SDK features, emphasizing the importance of built-in retry logic to improve developer experience by allowing API builders to define appropriate retry strategies for handling errors and connection issues.
Dec 21, 2022
638 words in the original blog post.
The blog post discusses the flexibility and potential ambiguities within the OpenAPI specification, particularly in defining query parameters for HTTP APIs. It highlights the importance of explicitly defining query parameters in OpenAPI 3.0.X schemas to reduce ambiguity in API documentation and improve the clarity of API behavior for developers and end-users. The post suggests best practices such as using OpenAPI-defined formats, marking properties as required or nullable, and setting attributes like allowReserved to specify how query parameters should be serialized. It explains different serialization styles supported by OpenAPI, such as form, spaceDelimited, and pipeDelimited, and stresses the need to explicitly set serialization methods for consistency. Additionally, the post covers advanced attributes like allowEmptyValue and nullable, and how parameters can be shared across methods and paths within an OpenAPI schema, emphasizing the utility of these practices in creating robust, clear, and maintainable API documentation.
Dec 20, 2022
1,824 words in the original blog post.
In 2022, the increasing variety in programming language usage has complicated the creation of API client libraries, necessitating support for a wider range of languages than before. To address this, Speakeasy has introduced an alpha version of its Java SDK, designed to adhere to Java conventions with minimal dependencies and enhanced serialization features. The company has integrated telemetry into all its SDKs to provide insights into how developers interact with their APIs, moving beyond traditional metrics like GitHub stars to offer more precise usage data. Additionally, Speakeasy has refreshed its user interface with new icons, colors, and navigation to enhance the user experience, reflecting these changes in their updated application visuals.
Dec 08, 2022
479 words in the original blog post.
The OpenAPI Specification is renowned for its adaptability in describing HTTP APIs, such as RESTful and RPC-based calls, which provides flexibility but can also lead to ambiguities in documentation. To address these issues, the text emphasizes the importance of using data types and formats accurately in OpenAPI 3.0.X to improve both documentation clarity and the utility of the specification for code generation and artifact creation. It details how to explicitly define data types like strings, numbers, integers, booleans, arrays, and objects, along with their formats and validation attributes, to address common ambiguities and ensure compatibility with various tools and languages. The document also outlines the use of attributes such as minimum and maximum values for numbers, required fields for objects, and configuring arrays for unique or specific item counts, while also touching on the ability to mark schemas as nullable in the absence of a null type. The exploration of these data types and formats aims to create more descriptive and explicit API specifications, enhancing the end-user experience and tool integration.
Dec 06, 2022
2,582 words in the original blog post.
SDK generators are often criticized for sacrificing developer experience, but the team behind the Speakeasy SDK generator is working to change this by creating generators that are both easy to use and enjoyable for developers. Since its beta release, the Speakeasy SDK generator has introduced features such as an OpenAPI extension that allows for multiple server definitions, enhancing the usability of generated SDKs by providing a way to set a default server. Additional features include comprehensive Readmes and code comments that offer installation instructions and usage examples, as well as support for custom HTTP clients to accommodate different configurations and proxies. The platform also offers improvements like Google login support, with plans for more authentication providers in the future, as part of its ongoing effort to enhance both functionality and user experience.
Dec 01, 2022
442 words in the original blog post.