Other Extensions
Fern supports various extensions to enhance your gRPC specifications and improve the generated SDKs and documentation.
x-fern-ignore
Use x-fern-ignore
to exclude specific services, methods or messages from SDK generation:
x-fern-examples
Provide additional examples for better SDK documentation:
x-fern-pagination
Configure pagination for methods that return lists:
x-fern-retry
Configure retry behavior for methods:
x-fern-timeout
Configure timeout settings for methods:
x-fern-error-handling
Configure error handling for methods:
x-fern-availability
Mark features as available in specific SDK versions:
x-fern-streaming
Mark methods as streaming for appropriate SDK generation:
x-fern-server-name
Specify custom names for different server environments:
x-fern-base-path
Configure base paths for generated SDK clients:
x-fern-sdk-group-name
Group related services in the SDK:
This generates SDKs with grouped services:
x-fern-union-naming
Configure naming for oneof fields in SDKs:
x-fern-validation
Add validation rules for message fields:
These extensions help you create more robust and user-friendly SDKs while maintaining full control over the generated code structure and behavior.