JSONAPI-Resources / JSONAPI-Resources/jsonapi-resources
Multiple params not allowed errors not returned in response
Nessuno ha ancora preso questa issue.
- Lingua principale
- Ruby
- Stelle
- 2.3k
- Fork
- 546
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
This issue is a (choose one):
- Problem/bug report.
- Feature request.
- Request for support. Note: Please try to avoid submitting issues for support requests. Use Gitter instead.
Checklist before submitting:
- I've searched for an existing issue.
- I've asked my question on Gitter and have not received a satisfactory answer.
- I've included a complete bug report template. This step helps us and allows us to see the bug without trying to reproduce the problem from your description. It helps you because you will frequently detect if it's a problem specific to your project.
- The feature I'm asking for is compliant with the JSON:API spec.
Description
Choose one section below and delete the other:
Bug reports:
When multiple invalid parameters are provided, only the first error is included in the response. This behavior changed in d177c228510e122ccb069c5f3eb3ad36b2261430: https://github.com/cerebris/jsonapi-resources/blob/a7447ac7d51dcc5c4d5ccc8a59bef5e4d3b744ea/lib/jsonapi/request_parser.rb#L629-L634
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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.
Direzione di ricerca
Inizia in lib/jsonapi/request_parser.rb, intorno alle righe 629-634, nella posizione indicata nel report. Riproduci una richiesta con più parametri non validi e analizza gli errori della risposta. Il lavoro è completato quando la risposta include tutti gli errori relativi ai parametri non validi, invece del solo primo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- ruby
- Ambito
- api, backend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100