Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

#2697: forbid multiple @default breaks my workflow

Open
#2,756 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
typescript
Domain
database

Research direction

The complaint targets the ZModel schema validation that rejects a client-side @default appearing alongside a database default; start by finding the rule that raises this error and the attribute list it inspects, then read the referenced discussion #2697 for the maintainers' reasoning. The request is for an escape hatch such as @passthrough or a db-level default, so 'done' means a schema that mixes both parses and the generated client and database push preserve the database default. The payload names no files, tests or entry points, and the thread has one comment with no decision.

Written by the indexing model from the issue text.

Description

I don't think there is a reason to forbid a client-side default and a database default. I get that you can't necessarily determine based on implementation but i need and @passthrough or an @db.default() or something.

Not all of the database creates go through my zenstack client. can i please have a workaround.

This blocks me from updating.

Dominant language
TypeScript
Stars
2.9k
Forks
157
Avg merge
11h 42m
Merged PRs (30d)
20

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from zenstackhq/zenstack

All issues in zenstackhq/zenstack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.