Accept priority as string
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Non sono indicati né il file sorgente né il test; inizia tracciando la gestione della priorità dei messaggi da parte dell’API del server. Verifica il percorso di validazione esistente e i relativi test, quindi conferma che le stringhe numeriche siano accettate, mentre le stringhe che non rappresentano numeri interi continuino a produrre un errore.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
Home-Assistant notify service with POST_JSON type always sends priority as sting in resulting JSON due to templating engine (similar how ansible jinja templating works), that is not accepted by gotify server with 400 bad requests, as it accepts strict integer value for priority only
Describe the solution you'd like
gotify server to accept priority as string, and throw an error only if string value is not castable to integer
Describe alternatives you've considered
No real alernativies found so far, only hardcoding particular value/default priority which doesn't serve the purpose of prioirty differentiation within single app messages
Additional context
N/A
- Lingua principale
- Go
- Stelle
- 16k
- Fork
- 878
- Merge medio
- 2g 10h
- PR unite (30g)
- 4
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 gotify/server
-
a:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
a:feature
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
a:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
Session elevation duration is unbounded, and large values silently overflow to a past timestamp Apertaa:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
-
a:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Tutte le issue di gotify/server
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 60/100
github/gh-aw-mcpg#13748 ·
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
googleapis/librarian#7670 · 2 commenti ·