Skip to content

v0.4.0

Choose a tag to compare

@mertcanaltin mertcanaltin released this 23 May 20:29
· 8 commits to main since this release

TypeScript type provider and ata-validator 0.17.

  • AtaTypeProvider: use Fastify().withTypeProvider<fastifyAta.AtaTypeProvider>() and author route schemas with defineSchema(...) from ata-validator, and request.body / request.query / request.params are typed from the schema with no manual annotation. Plain JSON Schema, no builder DSL. Type-level only.
  • Bumped to ata-validator@^0.17.0 (cross-schema $ref, nullable, coerceTypes array, and the validateAndParse fix).
  • prettyErrors option renders compiler-grade error messages (ATA code + did-you-mean) in 400 responses.