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

The Choice kind carries no option list

Aperta
#58 0 commenti 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
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
backend, frontend

Direzione di ricerca

Start from kindSelect, which maps Choice to the String scalar, and from coerce, where the Choice branch currently accepts any string the same way Text does. The fields guide's promise that Choice is kept apart for a later option list is the spec to check against. Done means a definition can carry options, out-of-list values are refused, and the form renders a dropdown; the option list and the UI need maintainer agreement first.

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

Descrizione

enhancement

The Choice kind holds a short line and nothing more, so it behaves exactly like Text while the guide tells operators it is something else.

Current state: kindSelect maps to the String scalar and coerce accepts any string, the same branch Text and Long text take. The fields guide says Choice is "kept apart from Text so a later release can add a fixed option list", which is a promise in writing that the product does not keep.

Proposal: let a definition carry its options, refuse a value outside them, and offer them as a dropdown rather than a text box. Until then Choice is a documentation debt.

Trigger: active, the guide already promises it.

Lingua principale
Go
Stelle
287
Fork
64
Merge medio
13h 19m
PR unite (30g)
62

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 gopherium/AlphOne

Tutte le issue di gopherium/AlphOne

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.