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

Why do schemas 'string' and 'array' allow `null` as a value?

Aperta
#43 10 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
api

Direzione di ricerca

Start by locating the isValidValue implementations for the string and array types, then inspect their tests and usages to determine whether null is intentional or relied upon. The issue is resolved when the intended behavior is decided, dependent usages are understood, and the implementation and tests consistently reflect that decision.

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

Descrizione

dev:code-review

This is the isValidValue for the string type:

isValidValue: value => value === null || typeof value === 'string'

To me it seems like if a value isn't provided for string, it should be an empty string, like ''. This isn't blocking any work, but just seemed strange to me. It isn't clear if any code on our project is depending on this weirdness (I hope not).

Lingua principale
TypeScript
Stelle
3
Fork
5
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 phetsims/query-string-machine

Tutte le issue di phetsims/query-string-machine

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.