[ENHANCEMENT](system) Support RootModel entry points end to end

Aperta
#864 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Read the RootModel implementation and the linked sub-issues that this work depends on; the payload does not name files or tests. Trace entry-point discovery and tags, codegen's Markdown and PySpark output, and the validation union, then check scalar and container RootModels remain documented aliases. Done when model and discriminated-union RootModels behave like their bare equivalents across those paths and the Segment JSON Schema includes its description.

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

Descrizione

A RootModel entry point names a feature the way a bare type alias cannot: it has a class name and a docstring, and its JSON Schema has a title and a description. A RootModel over a discriminated union or a model should behave like the bare union or model everywhere an entry point is read: discovery and its tags, codegen's Markdown and PySpark output, and the validation union. A RootModel over a scalar or container stays a documented alias.

Segment is the first candidate: written as class Segment(RootModel[...]) it gains the description its Segment.__doc__ assignment never produced in the JSON Schema. It moves once every sub-issue below that it depends on is closed.

Lingua principale
Python
Stelle
219
Fork
20
Merge medio
1g 21h
PR unite (30g)
37

Preparare l'ambiente

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 OvertureMaps/schema

Tutte le issue di OvertureMaps/schema

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.