Overview of Revali code generation
Revali reads annotations on Dart classes to generate several production-ready artifacts, ensuring the client, documentation, and deployment stay in sync with the business logic. Generated artifacts include:
- Server: Routing, binding, validation, and response pipeline.
- Dart Client (
revali_client): A type-safe client with matching method names and types for use in Flutter or Dart apps. - OpenAPI Spec (
revali_swagger): A valid OpenAPI 3.0.3 document in YAML and JSON inferred from parameters and return types. - Dockerfile (
revali_docker): A multi-stage build that AOT-compiles the server to a native executable on Alpine Linux.