Sep 16, 2024 路 3 min read 路 The latest Release 0.9 of the Schema Validation Toolkit - ajv-ts brings a suite of enhancements to improve developer productivity and ensure better validation accuracy. Whether you're building complex data models or just handling basic input, these u...
Join discussion
Jul 8, 2024 路 1 min read 路 Note: The library is not an official ajv extension What's up, guys! Today I will show you a massive product update for the library inspired by zod - ajv-ts. Release link - here Why have there been no updates for a long time? Well, the previous relea...
Join discussionFeb 23, 2024 路 6 min read 路 Validation is an important aspect of API development as it helps you check whether an API is working as expected, whether it returns the right data quickly, and if it meets security requirements. Developers who use Fastify need to remain aware of how...
DDamien and 1 more commented
Jan 16, 2024 路 2 min read 路 Installation/Update npm i ajv-ts@latest # npm yarn add ajv-ts@latest # yarn pnpm add ajv-ts@latest # pnpm bun add ajv-ts@latest # bun New Features not, exclude Now you can mark your schema with not keyword! Here is a 2 differences between not and ex...
Join discussionJan 15, 2024 路 1 min read 路 New Features Now schema builder supports custom error messages. import s from 'ajv-ts' const num = s.number().error('cannot be not a number') const res1 = num.safeParse("some random string") const res2 = num.safeParse("1.2") console.error(res1.erro...
Join discussion