Conversation
|
Mmm, does it make sense to have this as tri-state (null/absent, 0, 1)? Thinking about removing the Though, it's not "required", just "recommended"... |
|
@evgenigourvitch could you, please, check if you need the same for I think that it makes sense to adhere to such rules:
Just to make such decisions simple in future. |
|
Regarding the DNT - currently it's fine for me, but "tomorrow" it could be changed and I'll need to send 0 value, so lets do it in one go, just like you said. Changing it. IMHO, the omitempty modifier is just great! It allows to save traffic costs very easily and believe in LARGE scale its worth it - every byte counts. I think pointer is a nice solution for tri-state values null/0/1. Absence (null) will easily allow to save traffic costs in most of the cases. And 0/1 will be easily passed when needed. |
|
Will merge / update README with "omitempty" usage hints / make a new major ver release today in ~ 8-9 hours. |
|
@mxmCherry thanks a lot! |
|
@evgenigourvitch released as https://github.com/mxmCherry/openrtb/releases/tag/v11.0.0 , thanks for contributing! |
to allow to pass 0 values when required.