Closed Zetanova closed 2 months ago
hi @Zetanova
This is currently not possible in C# across all .net versions. Nullable constraints (where T : class?) is only available from language version 8.0.
For the moment, please try with a nullable type on your side (maybe MyObject?) or dictionary as a short term solution. Once VaultSharp goes to 8.0 language version as the minimum, this can be added.
Describe the bug It is not possible to read the last KV secret if it is soft deleted or destroyed. The returned json data is null and deserialization fails.
VaultSharp Version 1.13.01
Vault Version 1.12.7
Does this work with Vault CLI? Yes
Sample Code Snippet
Exception Details/Stack Trace/Error Message
Any additional info
secret.Data.Data
should be marked and handled as Nullable