Idea: detailed version-specific type annotations for `Schema`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start by reading the linked Python typing discussion and the related jsonschema issues #766 and #778 to understand the proposed TypedDict approach and version-specific schema differences. The issue gives exclusiveMaximum as an example; a working implementation would provide static schema types that vary by draft version and could be considered for upstreaming.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I recently saw https://github.com/python/typing/issues/182#issuecomment-899624078 proposing a nice trick for type-checking JSON data, and it occured to me that this could be extended to define version-specific Schema types using TypedDict. See also https://github.com/Julian/jsonschema/issues/766 and https://github.com/Julian/jsonschema/issues/778 - if we get a working implementation, this would probably be suitable for upstreaming.
For example, this would allow for static detection of exclusiveMaximum as either bool or int | float depending on the schema draft version.
- Lingua principale
- Python
- Stelle
- 281
- Fork
- 35
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di python-jsonschema/hypothesis-jsonschema
-
Missing test files in Pypi releaseForse già presa @blouirts123 l’ha presa 49 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
-
Shouldn't PKG-INFO Homepage point to https://github.com/python-jsonschema/hypothesis-jsonschema ?Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 58/100
python-jsonschema/hypothesis-jsonschema#114 · 1 commento ·
-
Push release tags to github?Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 55/100
python-jsonschema/hypothesis-jsonschema#113 · 1 reazione ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
python-jsonschema/hypothesis-jsonschema#104 · 3 reazioni ·
Tutte le issue di python-jsonschema/hypothesis-jsonschema
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
web-push-libs/pywebpush#216 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
AgriciDaniel/claude-seo#572 ·
I maintainer di solito rispondono entro 5 giorni
-
area:print-dispatch
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno
-
area: docs domain: technical-writing good first issue type: documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
Deepak3699/Ai_Mentor#919 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno