Matteo CollinaforPlatformatic Blogblog.platformatic.dev·Feb 23, 2024Fastify Fundamentals: How to Validate API ResponsesValidation 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...Discuss·710 readsplatformatic
Vitali Haradkouvitalicset.hashnode.dev·Jan 16, 2024Library update: ajv-ts 0.5Installation/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...DiscussAjv-ts library updatesNode.js
Vitali Haradkouvitalicset.hashnode.dev·Jan 15, 2024Library update: ajv-ts 0.4New 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...DiscussAjv-ts library updatesajv