mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-09 19:41:37 +01:00
Instead of using the field FieldData.Raw, use method GetOkError() which does type conversion but still allows to check whether a value for the parameter was provided. Note that GetOkError() converts nil values to default or zero values, so, for example, a nil plaintext value will result in the empty string being encrypted.