Open andrueastman opened 4 months ago
Thanks for starting a discussion on this. Since send primitive performs the work of both, what issue are you trying to resolve by adding specific methods?
Hey @baywet,
From my perspective, this is more about consistency/alignment across languages which we can look into taking care of in the next breaking change of the library.
Furthermore, in the event someone is implementing their own version of IRequestAdapter
it is unclear that they can handle enums in the primitive section. Updating the interface makes things clearer I think.
To align with other languages like go/java, IRequestAdapter should have
sendEnum
andsendEnumCollection
methods to handle APIs that return enums.At the moment this is mapped to
sendPrimitive
methods which does not align with other languages. This is a breaking change and should be resolved in the next major version of the lib.