🌐
GitHub
github.com › elijaholmos › prisma-schema-validate
GitHub - elijaholmos/prisma-schema-validate: GitHub Action to validate a schema.prisma file using the Prisma CLI
GitHub Action to validate a schema.prisma file using the Prisma CLI - elijaholmos/prisma-schema-validate
Author   elijaholmos
🌐
Prisma
prisma.io › home › validate › validate
prisma validate | Validate Prisma Schema | Prisma Documentation
Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma Error: Schema validation error - Error (query-engine-node-api library) Error code: P1012 error: The preview feature "unknownFeatureFlag" is not known. Expected one of: [...] schema.prisma:3 | 2 | provider = "prisma-client" 3 | previewFeatures = ["unknownFeatureFlag"] | Validation Error Count: 1 · Edit on GitHub ·
🌐
GitHub
github.com › prisma › prisma › issues › 28325
Prisma validation errors when using multiple schema files with custom config (PostgreSQL types not recognized) · Issue #28325 · prisma/prisma
October 19, 2025 - When using multiple schemas and a custom prisma.config.ts, Prisma seems to ignore the datasource configuration from schema.prisma (PostgreSQL), and instead applies the "Default" connector, causing validation errors for native PostgreSQL types such as @db.Uuid and @db.VarChar.
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.
🌐
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
🌐
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 › issues › 22063
Prisma schema validation throwing on valid default · Issue #22063 · prisma/prisma
November 22, 2023 - Bug description Prisma schema loaded from schema.prisma Error: Prisma schema validation - (get-dmmf wasm) Error code: P1012 error: Error parsing attribute "@default": The default value of a non-list field cannot be a list. --> schema.pri...
Author   prisma
🌐
GitHub
github.com › prisma › prisma › issues › 25666
Support for JSON Schema Validation in Prisma Models for Relationnal databases · Issue #25666 · prisma/prisma
November 18, 2024 - Introduce a feature that allows developers to define and enforce a JSON schema directly within the Prisma schema file. For example: model Example { id Int @id @default(autoincrement()) data Json @jsonSchema("path/to/schema") } The @jsonschema ...
Author   prisma
Find elsewhere
🌐
GitHub
github.com › prisma › prisma › issues › 24432
Add support for `pre`/`post` validation hooks in Prisma schema · Issue #24432 · prisma/prisma
June 5, 2024 - Without these features, developers may resort to implementing workaround solutions or performing data validation and manipulation outside of the database layer, leading to potential issues such as data inconsistencies and increased development complexity. To address these challenges, it is proposed that Prisma integrates support for model callbacks and schema-level validations directly into its framework.
Author   prisma
🌐
GitHub
github.com › prisma › prisma › issues › 12529
List all CLI commands that validate the schema and if they also check for values of `env()` · Issue #12529 · prisma/prisma
March 25, 2022 - Seems prisma validate does check if an env() value in the schema is actually set and fails if not. Does this make sense? What other commands have this behavior, and which ones do not? (we think gen...
Author   prisma
🌐
GitHub
github.com › prisma › prisma1 › issues › 3017
Add validation to fields in the schema · Issue #3017 · prisma/prisma1
September 5, 2018 - It seems to me that the schema should be the single source of truth. ... On any field, I'd like to be able to inject a function that would determine whether an update to that field could take place. For example, I might want to validate an Email or Url field against a regular expression, or check that an Int is between upper and lower bounds.
Author   prisma
🌐
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%
🌐
GitHub
github.com › chrishoermann › zod-prisma-types
GitHub - chrishoermann/zod-prisma-types: Generator creates zod types for your prisma models with advanced validation · GitHub
For one of my projects I was in need of a generator that offers the possibility of adding zod validators directly in prisma schema's rich-comments and generates zod schemas for all prisma models, enums, inputTypes, argTypes, filters and so on. I also wanted to be able to import these schemas in the frontend e.g.
Starred by 867 users
Forked by 76 users
Languages   TypeScript 99.7% | JavaScript 0.3%
🌐
GitHub
github.com › prisma › prisma › issues › 3528
Add runtime validation to models · Issue #3528 · prisma/prisma
September 4, 2020 - Provide a validate function for models which is based on the Prisma schema:
Author   prisma
🌐
GitHub
github.com › prisma › prisma › issues › 10809
Better Schema validation for MongoDB · Issue #10809 · prisma/prisma
December 21, 2021 - Problem I had the following schema generator client { provider = "prisma-client-js" previewFeatures = ["mongoDb"] } datasource db { provider = "mongodb" url = env("DATABASE_URL") } model User { id String @id @default(dbgenerated()) @map(...
Author   prisma
🌐
GitHub
github.com › prisma › prisma › issues › 10173
Suggestions/Recommendations for schema validation / VS Code extension · Issue #10173 · prisma/prisma
November 9, 2021 - kind/featureA request for a new feature.A request for a new feature.topic: database-provider/planetscaletopic: dxtopic: prisma formatCLI: prisma formatCLI: prisma formattopic: prisma validateCLI: prisma validateCLI: prisma validatetopic: relationModeformerly `referentialIntegrity`formerly `referentialIntegrity`topic: schema validationtopic: vscode extension
Author   prisma
🌐
GitHub
github.com › prisma › prisma › issues › 3747
Schema validator is not validating optionality of relations on both ends · Issue #3747 · prisma/prisma
September 4, 2020 - t.field('createUserWithoutAddress', { type: 'User', args: { email: stringArg({ nullable: false }), }, resolve: (_, { email }, ctx) => { return ctx.prisma.user.create({ data: { email, address: { create: undefined }, }, }) }, })
Author   prisma
🌐
GitHub
github.com › olivierwilkinson › prisma-validation-middleware
GitHub - olivierwilkinson/prisma-validation-middleware: Prisma middleware for validating data before creating or updating records
Prisma middleware for validating data before creating or updating records - olivierwilkinson/prisma-validation-middleware
Author   olivierwilkinson