Customization basics
The Speakeasy SDK pipeline uses sensible defaults to generate SDKs, but various customizations can improve the user experience. Customizations can be applied using the following methods:
- Modifying the OpenAPI document.
- Adding
x-speakeasyextensions to the OpenAPI document. - Editing the
gen.yamlfile in the SDK repository.
1. Modifying the OpenAPI document
The OpenAPI document is the foundation of SDK generation. Modifications to the OpenAPI document influence the structure, naming conventions, and functionality of generated SDKs.
Learn more about OpenAPI in the reference documentation.
Modifying the OpenAPI document with overlays
Speakeasy supports OpenAPI overlays for customizing and extending existing OpenAPI documents without directly modifying them. Overlays are especially useful for applying different configurations or updates to the specification for various environments or SDKs without altering the base OpenAPI document.
Overlays work by referencing and extending parts of the base OpenAPI document. They can be used to add, override, or remove elements such as paths, schemas, parameters, or security configurations.