hashicorp / sentinel-sdk

This SDK allows developers to extend Sentinel to source external information for use in their policies.
Mozilla Public License 2.0
51 stars 13 forks source link

proto: add back the call boolean #27

Closed vancluever closed 5 years ago

vancluever commented 5 years ago

This adds back the call boolean that was previously at the top level of the Get_Request message, now placed in the individual keys of the request.

This was needed because the protobuf serialization/de-serialization process will not restore a non-nil empty slice to its correct state over the wire - it remains nil. As such, the boolean stands in to determine whether or not we need to initialize an empty slice if the key is a call to a niladic function.