mockersf / jenkins-api.rs

Rust client for Jenkins API
MIT License
26 stars 17 forks source link

Color seems to be an optional field #37

Closed ardouglas closed 4 years ago

ardouglas commented 5 years ago

Hi, thank you very much for this great library! I have an issue when using the get_view method. It seems that the response from my Jenkins server does not include the color field for every job. I cloned your repo and modified src/job/common.rs in two places and that fixed the issue for me.

I changed the two lines that were pub color: BallColor,

to pub color: Option,

If you are interested in these changes I can submit a PR. Thanks again for the awesome library!

mockersf commented 4 years ago

sorry for the delay, I'm pushing the change now in v0.6.0