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 › 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.
🌐
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.
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
Get type of Prisma validator
Hi, I read about Prisma validator https://www.prisma.io/docs/concepts/components/prisma-client/advanced-type-safety/prisma-validator But can we extends it more? More on github.com
🌐 github.com
3
1
Prisma Client Extension: support `Prisma.validator`
I got asked to make a feature request by @millsp #15074 (comment) I always define a select: when doing queries (because otherwise we get the equivalent of select *), and want to do the equivalent t... More on github.com
🌐 github.com
2
April 26, 2023
Prisma.validator is gone but docs still have it and not sure the alternative
The official Discord server of Prisma! Find us online at prisma.io ... Property 'validator' does not exist on type 'typeof Prisma'. More on answeroverflow.com
🌐 answeroverflow.com
September 10, 2025
🌐
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.
🌐
GitHub
github.com › omar-dulaimi › prisma-class-validator-generator
GitHub - omar-dulaimi/prisma-class-validator-generator: Prisma 2+ generator to emit typescript models of your database with class validator · GitHub
Automatically generate TypeScript class-validator models from your Prisma schema Create type-safe validation classes with decorators from your database models
Starred by 91 users
Forked by 18 users
Languages   TypeScript 98.0% | JavaScript 1.2% | Shell 0.8%
Find elsewhere
🌐
GitHub
github.com › prisma › prisma › issues › 18943
Prisma Client Extension: support `Prisma.validator` · Issue #18943 · prisma/prisma
April 26, 2023 - const postSelect = Prisma.validator<Prisma.PostSelect>()({ // .. }) Originally posted by @KATT in #15074 (comment) Reactions are currently unavailable · millsp · kind/featureA request for a new feature.A request for a new feature.tech/typescriptIssue for tech TypeScript.Issue for tech TypeScript.topic: clientExtensions ·
Author   prisma
🌐
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.
🌐
Answer Overflow
answeroverflow.com › m › 1415361252200288256
Prisma.validator is gone but docs still have it and not sure the alternative - Prisma
September 10, 2025 - 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.
🌐
Socket
socket.dev › npm › package › prismavalidator
prismavalidator - npm Package Security Analysis - Socket.dev
January 1, 2023 - It checks for the presence of all required fields and verifies that the data types of these fields are co ... Prisma Validate is a JavaScript library that allows you to easily validate your data against a Prisma schema.
🌐
npm
npmjs.com › package › @serviceup › prisma-generator-class-validator
@serviceup/prisma-generator-class-validator - npm
May 21, 2025 - Automatically generate typescript models of your database with class validator validations ready, from your Prisma Schema.
      » npm install @serviceup/prisma-generator-class-validator
    
🌐
npm
npmjs.com › package › prisma-class-validator
prisma-class-validator - npm
August 3, 2021 - Automatically generator class-validator schema from Prisma client projects.
      » npm install prisma-class-validator
    
Published   Mar 08, 2021
Version   1.1.3
🌐
npm
npmjs.com › package › zod-prisma-types
zod-prisma-types - npm
January 24, 2026 - Generates zod schemas from Prisma models with advanced validation. Latest version: 3.3.11, last published: 5 months ago. Start using zod-prisma-types in your project by running `npm i zod-prisma-types`. There are 11 other projects in the npm ...
      » npm install zod-prisma-types
    
Published   Jan 24, 2026
Version   3.3.11
🌐
npm
npmjs.com › package › prisma-class-validator-generator
prisma-class-validator-generator - npm
July 13, 2022 - Automatically generate TypeScript class-validator models from your Prisma schema Create type-safe validation classes with decorators from your database models
      » npm install prisma-class-validator-generator
    
Published   Nov 07, 2025
Version   6.2.0
🌐
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.
🌐
DEV Community
dev.to › omardulaimi › how-to-automatically-generate-class-validator-models-from-your-prisma-schema-40g8
How to automatically generate Class Validator models from your Prisma schema - DEV Community
May 13, 2022 - generator class_validator { provider = "prisma-class-validator-generator" } 3- Run npx prisma generate for your schema(or the example below) model User { id Int @id @default(autoincrement()) email String @unique name String? posts Post[] } model Post { id Int @id @default(autoincrement()) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt title String content String?
🌐
Medium
medium.com › @gnanabillian › prisma-runtime-custom-validation-to-models-acd4362efaa5
Prisma runtime custom validation to models | by Gnanabillian | Medium
July 6, 2023 - This client allows you to interact with the database and perform CRUD operations. In this example, we use Prisma Client’s $use method to define a middleware that intercepts all create or update operations on the User model. Inside the middleware, we define a Joi schema to validate the create and update data.