Unusual JSON schemas
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by reviewing the XQueue endpoint responses and any existing schema or API documentation. Confirm which entities currently contain JSON-encoded strings, then document or implement the agreed response shape and verify the compatibility impact of replacing those strings with objects.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I wonder if there is any documentation for the JSON entities returned by the XQueue endpoints?
So far the best I can do is reverse engineering. I was surprised to see JSON objects embedded in JSON strings. What is the motivation for doing that? The drawbacks of this solution are that:
- it makes it harder to define a proper JSON schema for these entities (consequently, it makes it impossible to decode these entities with automated solutions based on such schemas),
- entities have to be parsed several times,
- entities take more space because they are escaped several times,
- pretty printing an entity is hopeless.
Why not use plain old JSON objects instead?
To be clearer, I propose that we replace the following schema:
{
"foo": "{ \"bar\": \"baz\" }"
}
With this one:
{
"foo": {
"bar": "baz"
}
}
- Lingua principale
- Python
- Stelle
- 39
- Fork
- 102
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri 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 openedx/xqueue
-
maintenance needs maintainer attention
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
SSLv3 handshake failure Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
-
How does Amazon S3 work? Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
-
Using the XQueue interface Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
Tutte le issue di openedx/xqueue
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
learningequality/kolibri#15351 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Name consistency Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eellak/triplestore#65 · 1 commento ·