Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

#2697: forbid multiple @default breaks my workflow

Aperta
#2,756 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
database

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
2.9k
Fork
157
Merge medio
11h 42m
PR unite (30g)
20

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di zenstackhq/zenstack

Tutte le issue di zenstackhq/zenstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.