Cannot add respondToFormats within Compound
- Lingua principale
- JavaScript
- Stelle
- 7
- Fork
- 5
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Unless I'm missing a place to call `require('kontroller').Helpers.respondToFormats.push('newformat');`, then there is an issue with the way the BaseController is bound to compound to allow additional formats to be pushed to it. I tried accessing `app.compound.controller` to see if I could make the call to the Helpers.respondToFormats there, but it only bound the functions, e.g. `respondTo`.
I guess for now I will go back to using the `switch(format)` technique.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Look at the BaseController binding in the compound integration, likely in the kontroller library's main entry point or a compound-specific adapter. The issue is that respondToFormats array is not exposed. Check how the controller is attached to app.compound.controller and see if the Helpers object is fully bound. Test by trying to push a new format and see if it's recognized in response handling.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- backend-api-design
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100