[BUG](codegen) A RootModel entry point whose root contains a non-feature union cannot be documented

Aperta
#866 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
56/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
documentation

Direzione di ricerca

Start by tracing the RootModel alias path through extract_rootmodel_alias and its call to analyze_type; the issue names these entry points but no test files. Reproduce the failure with a RootModel root containing a multi-arm union, such as list[U], and inspect how Markdown generation handles the resulting UnsupportedUnionError. Done means the alias shape is documented or the error identifies the entry point and unsupported shape.

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

Descrizione

A RootModel over list[U], dict[str, U], int | str or Model | int is not a union feature, so it takes the alias path. extract_rootmodel_alias calls analyze_type with no union_resolver, so any multi-arm union under the root raises UnsupportedUnionError and aborts a Markdown run. The alias path should document the union as the alias's shape, or raise an error naming the entry point and the unsupported shape.

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.