Skip to content

fix(zod): avoid importing Prisma enum, recognize enum fields with default#2307

Merged
ymc9 merged 3 commits into
devfrom
fix/issue-2291
Nov 22, 2025
Merged

fix(zod): avoid importing Prisma enum, recognize enum fields with default#2307
ymc9 merged 3 commits into
devfrom
fix/issue-2291

fix enum reference in validation rules

28cfe7c
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Nov 22, 2025 in 3s

6 new alerts including 6 medium severity security vulnerabilities

New alerts in code changed by this pull request

Security Alerts:

  • 6 medium

See annotations below for details.

View all branch alerts.

Annotations

Check warning on line 772 in packages/schema/src/plugins/zod/generator.ts

See this annotation in the file changed.

Code scanning / CodeQL

Improper code sanitization Medium

Code construction depends on an
improperly sanitized value
.

Check warning on line 264 in packages/sdk/src/typescript-expression-transformer.ts

See this annotation in the file changed.

Code scanning / CodeQL

Improper code sanitization Medium

Code construction depends on an
improperly sanitized value
.

Check warning on line 274 in packages/sdk/src/typescript-expression-transformer.ts

See this annotation in the file changed.

Code scanning / CodeQL

Improper code sanitization Medium

Code construction depends on an
improperly sanitized value
.

Check warning on line 568 in packages/sdk/src/typescript-expression-transformer.ts

See this annotation in the file changed.

Code scanning / CodeQL

Improper code sanitization Medium

Code construction depends on an
improperly sanitized value
.

Check warning on line 569 in packages/sdk/src/typescript-expression-transformer.ts

See this annotation in the file changed.

Code scanning / CodeQL

Improper code sanitization Medium

Code construction depends on an
improperly sanitized value
.

Check warning on line 570 in packages/sdk/src/typescript-expression-transformer.ts

See this annotation in the file changed.

Code scanning / CodeQL

Improper code sanitization Medium

Code construction depends on an
improperly sanitized value
.