Skip to content

validateApiConfig

Open in ChatGPTOpen in Claude

validateApiConfig(config): void

Defined in: packages/core/src/lambda/define.ts:151

Validate a single API/HTTP-API config’s routing surface. Throws [Axis] errors on every D10 case. Called eagerly by the define* helpers and again by the constructs at synth (defensive — a bare-annotation config skips the helper). Scalar configs need no route validation (the type system already forbids routes/basePath).

ApiLambdaConfig | HttpApiLambdaConfig

void

© 2026 Axis Tech. Powered by axis-tech.co.