Overlay Customizations
Use overlay files to modify your AsyncAPI specification without editing the original
Overlays allow you to modify your AsyncAPI specification without directly editing the original file. This is useful for:
- Adding Fern-specific extensions
- Customizing documentation
- Adding examples and descriptions
- Overriding specific properties
Configure overlays
To use overlays, add them to your generators.yml
file:
generators.yml
Overlay file structure
Overlay files follow the OpenAPI Overlay Specification format:
overlay.yml
Add method names
Override SDK method names for better developer experience:
overlay.yml
Add examples
Enhance your specification with examples:
overlay.yml
Filter with audiences
Add audience filtering to operations and channels:
overlay.yml
Add documentation
Enhance descriptions and documentation:
overlay.yml
Server configurations
Add server-specific configurations:
overlay.yml
Multiple overlays
You can apply multiple overlay files in sequence:
generators.yml
Overlays are applied in order, allowing you to build up customizations incrementally while keeping your original AsyncAPI specification clean and focused.