Summary
Functions
Validates a list of openapi route.
Functions
Validates a list of openapi route.
This function performs compile-time validation of a list of openapi route
Validation steps
Handler validation
- If a
global_handleris provided, it is validated to ensure it is a valid module. - Each route is checked to ensure its handler (or fallback global handler) is a valid module when required.
- If a
Operation ID validation
- Ensures every route has a valid
operationId. - Verifies that the resolved handler module exports a function matching
the normalized operation id with arity 2 (
operation_id(conn, params)).
- Ensures every route has a valid