Sync your OpenRPC Specification
Keeping your OpenRPC specifications in sync with your codebase is crucial for maintaining accurate SDKs and documentation. Fern provides several automation options to streamline this process.
GitHub Actions
Use Fern’s GitHub Action to automatically update SDKs and docs when your OpenRPC spec changes:
Webhook integration
Set up webhooks to trigger SDK generation when your OpenRPC spec is updated:
Auto-sync from source
Configure Fern to automatically pull your OpenRPC specification from various sources:
From URL
From Git repository
CI/CD integration
CircleCI
GitLab CI
Scheduled updates
Set up scheduled updates to ensure your SDKs stay current:
Code generation from JSON-RPC server
For servers that can generate their own OpenRPC specifications:
Monitoring changes
Track changes to your OpenRPC specification:
Multi-environment sync
Sync different specifications for different environments:
JSON-RPC server introspection
For servers that support OpenRPC discovery:
This ensures that any breaking changes to your OpenRPC specification are detected and the appropriate team members are notified before the changes are propagated to your SDKs and documentation.