Shields: Bugzilla badge broken

Created on 1 Oct 2019  路  5Comments  路  Source: badges/shields

Are you experiencing an issue with...

  • [x] [shields.io](https://shields.io/#/)
  • [ ] My own instance
  • [ ] [gh-badges NPM package](https://www.npmjs.com/package/gh-badges)


https://img.shields.io/bugzilla/1536094?style=flat-square

bug good first issue hacktoberfest service-badge

All 5 comments

Looks like the API response for that bug has an empty string for the resolution field which is being rejected by the schema

https://bugzilla.mozilla.org/rest/bug/1536094

For anyone interested in working on this one, I believe adding an .allow('') to the schema for the resolution field would resolve this

https://github.com/badges/shields/blob/362da5262ba0a46d59f37030891b84afcd80b0a5/services/bugzilla/bugzilla.service.js#L16

Does it mean bugzilla is returned a invalid response or the scheme is maybe out of date?

Does it mean bugzilla is returned a invalid response or the scheme is maybe out of date?

No issues with the API, I just think we were expecting the API response to always include some value but that's clearly not always the case!

I would like to try fixing this as well

Closed via #4106

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PyvesB picture PyvesB  路  3Comments

paulmelnikow picture paulmelnikow  路  3Comments

calebcartwright picture calebcartwright  路  3Comments

najeeb-ur-rehman picture najeeb-ur-rehman  路  3Comments

calebcartwright picture calebcartwright  路  3Comments