Parse, Don’t Validate
watch on portal.gitnation.org ↗https://portal.gitnation.org/contents/parse-dont-validatesummary
Covers using JavaScript (with Fastify and TypeScript) to improve data correctness by preferring JSON Type Definition (JTD) over JSON Schema for API validation. Describes parsing JSON directly into application types, validating with JTD + TypeScript for better performance and stricter structure, and serializing specific types to reduce waste and security issues.
AI-written summary · about
related talks
20mSafely Handling Dynamic Data with TypeScript
40mValidating and Comparing Objects with Runtime Types (io-ts)
21mThe long-tail of type safety
17mSafely Handling Dynamic Data with TypeScript
20mREST API Validation in a Typescript front-end
21mThe long-tail of type safety
17mWhy You Should Maintain Type Definitions for Your JavaScript Project
27mDecoding Perplexing TypeScript