Make route colors optional#176
Conversation
a725b22 to
36a3ec6
Compare
|
Seems a bit more difficult to use, but I agree with you that this is better for serialization. if someone needs it, maybe we can add getter like fn route_color(&self) -> RGB8 { self.route_color.unwrap_or(DEFAULT_ROUTE_COLOR) } |
|
If you want it to be released right away, can you update the version (to |
Makes sense! I'll add that and update the tests. |
36a3ec6 to
a60b5d9
Compare
When generating feeds using the structures from gtfs_structures, it is desirable to be able to serialize an empty column. I suspect it is also relevant to know on the comsumer side wether black is a brand color or a fallback. This change is a an API break.
bd873aa to
e4e43a1
Compare
|
oups clippy seems unhappy with the string format (I don't really agree with it here, but it's nice to keep the lints). can you make the change ? else I'll do it. |
done |
|
Is there anything else I need to do? |
|
oups, no sorry, I was in holiday without a connection. thanks for the contribution! |
|
Ah no problem, I hope you enjoyed your holidays :) |
When generating feeds using the structures from gtfs_structures, it is
desirable to be able to serialize an empty column.
I suspect it is also relevant to know on the comsumer side wether black
is a brand color or a fallback.
This change is a an API break.