There is an open feature request for Prisma to support runtime model validation directly at the Schema level. Alternatively, you can leverage the Client Extensions to perform validation. There is an example in this blog post that shows how to perform custom runtime validation.

Answer from Raphael Etim on Stack Overflow
🌐
Prisma
prisma.io › home › type safety overview › type safety overview › type safety overview
Type safety | Prisma Documentation
Prisma Client provides full type safety for queries, even for partial queries or included relations. This page explains how to leverage the generated types and utilities.
🌐
Prisma
prisma.io › blog › nestjs-prisma-validation-7D056s1kOla1
Input Validation in a REST API with NestJS and Prisma 7
July 19, 2022 - This tutorial is the second part of a five-part series on building a REST API with NestJS and Prisma ORM. In it, you will add validation and transformation to the Median blog API: reject malformed input, strip unknown fields with the whitelist option, and convert URL path parameters from strings to numbers with ParseIntPipe.
Discussions

orm - How to do Prisma runtime model validation? - Stack Overflow
In my application, I have validated the input credential at the DTO level by using class-validator. But I need runtime model validation like sequelize ORM. In sequelize: 'use strict'; import { Data... More on stackoverflow.com
🌐 stackoverflow.com
validation - How to use Prisma with ValidationPipe in NestJS? - Stack Overflow
I'm trying to use Prisma with ValidationPipe that NestJS provides but it is not working, I was using class-validator package with DTO's (classes) as ValidationPipes and it was working fine, now I n... More on stackoverflow.com
🌐 stackoverflow.com
Add runtime validation to models
Problem Before saving data to the database, it's common to perform validation. When using Prisma to save user data (in an API), Prisma will perform runtime validation before saving to the datab... More on github.com
🌐 github.com
50
September 4, 2020
prisma validation
what's the best approach for validating data before creation if prisma currently can't validate nested writes? More on answeroverflow.com
🌐 answeroverflow.com
February 24, 2025
🌐
Prisma
prisma.io › home › crud › crud › crud › crud
CRUD (Reference) | Prisma Documentation
Learn how to perform create, read, update, and delete operations · This page describes how to perform CRUD operations with Prisma Client:
🌐
Prisma
prisma.io › home › prisma validator › prisma validator › prisma validator › prisma validator
Prisma validator | Prisma Documentation
The Prisma.validator is a utility function that takes a generated type and returns a type-safe object which adheres to the generated types model fields.
🌐
Medium
medium.com › yavar › prisma-runtime-custom-validation-to-models-acd4362efaa5
Prisma runtime custom validation to models | by Gnanabillian | Medium
July 6, 2023 - The model level is a runtime validation of our application, this validation will be executed before the data write-in database. So it provides data accuracy, and completeness of the dataset by eliminating data errors from any project to ensure that the data is not corrupted. Prisma Client has type-safety and run-time type validation but we can not implement custom validation.
Find elsewhere
🌐
GitHub
github.com › olivierwilkinson › prisma-validation-middleware › blob › main › README.md
prisma-validation-middleware/README.md at main · olivierwilkinson/prisma-validation-middleware
Prisma middleware for validating data before creating or updating records - olivierwilkinson/prisma-validation-middleware
Author   olivierwilkinson
🌐
npm
npmjs.com › package › zod-prisma-types
zod-prisma-types - npm
January 24, 2026 - A downside of this approach is that Prisma can't be simply imported as a type anymore because it is used to determine if an instance of Prisma.Decimal is passed in. When using Decimal a refine method is used to validate if the input adheres to the prisma input union string | number | Decimal | DecimalJsLike.
      » npm install zod-prisma-types
    
Published   Jan 24, 2026
Version   3.3.11
🌐
Prisma
prisma.io › home › custom validation › custom validation › custom validation › custom validation › custom validation
Custom validation | Prisma Documentation
This example adds runtime validation when creating and updating values using a Zod schema to check that the data passed to Prisma Client is valid.
🌐
Socket
socket.dev › npm › package › prisma-validation-middleware
prisma-validation-middleware - npm Package Security Analysis...
Prisma middleware for validating data before creating or updating records. Version: 1.1.0 was published by olivierwilkinson. Start using Socket to ana...
🌐
Prisma
prisma.io › home › format › format
prisma format | Format & Validate Prisma Schema | Prisma Documentation
The prisma format command formats your Prisma schema file. It validates, formats, and persists the schema.
🌐
Prisma
prisma.io › home › validate › validate
prisma validate | Validate Prisma Schema | Prisma Documentation
Validate Prisma schema syntax and configuration with prisma validate. Catch errors before generation. Use in CI/CD pipelines.
🌐
Mintlify
mintlify.com › mintlify atlas › mintlify-atlas/docs-atlas-8dadabf0 › validation pipeline
Validation Pipeline - Prisma Engines
March 1, 2026 - Default Value Validation · Next Steps · Prisma Schema Language · Schema validation and parser-database architecture · The validation pipeline transforms a parsed AST into a semantically validated schema.
🌐
GitHub
github.com › prisma › prisma › discussions › 22058
Advice on implementing custom validation with Prisma Client · prisma/prisma · Discussion #22058
Write Zod schemas for the models that need custom validation to validate email/url/other fields · Create a Prisma Client Extension that uses all of the Zod schemas I've written.
Author   prisma
🌐
GitHub
github.com › prisma › prisma › discussions › 18111
Exposing Prisma's internal validation functions · prisma/prisma · Discussion #18111
You can use Prisma Client Extensions to create a function that validates your data. You can invoke this function first and then invoke the insert query.
Author   prisma
🌐
YouTube
youtube.com › evoqys
Validations in Prisma - YouTube
Subscribe for more awesome content.Our Github Link: https://github.com/evoqysOur Instagram Handle: https://www.instagram.com/evoqys/Disclaimer: All the video...
Published   October 25, 2023
Views   1K
🌐
GitHub
github.com › prisma › prisma › issues › 3528
Add runtime validation to models · Issue #3528 · prisma/prisma
September 4, 2020 - When using Prisma to save user data (in an API), Prisma will perform runtime validation before saving to the database and throw an error if the user data doesn't match the type.
Author   prisma
🌐
Answer Overflow
answeroverflow.com › m › 1343721749451374687
prisma validation - Prisma
February 24, 2025 - In conclusion, while Prisma doesn't ... writes, you can use custom validation functions, Prisma Client extensions (for top-level validations), or third-party middleware solutions to validate your data before creation....