SDK Method Names
Use x-fern-sdk-method-name
to customize SDK method names for operations
By default, Fern generates SDK method names based on your operation names in AsyncAPI. You can override this behavior using the x-fern-sdk-method-name
extension.
Customize operation method names
Use x-fern-sdk-method-name
to specify custom method names for your operations:
asyncapi.yml
This will generate SDK methods like:
Method naming conventions
Follow these conventions when naming SDK methods:
Subscribe operations
Use descriptive names that indicate the action:
asyncapi.yml
Publish operations
Use action-oriented names:
asyncapi.yml
Language-specific method names
You can specify different method names for different programming languages:
asyncapi.yml
This ensures method names follow the conventions of each target language.