Need help to deserialise yaml
See original GitHub issueHi,
Sorry this is such a basic question. I’ve been using the other dotnet k8s library and would like to switch to yours, but I’m failing at the first hurdle.
I can’t work out how to read in my .yaml files (was doing with await Yaml.LoadFromFileAsync<V1Service>(...)
in KubernetesClient, which was working fine).
I’m trying things like
Deserializer deserializer = new DeserializerBuilder()
.Build();
... deserializer.Deserialize<ServiceV1>(File.ReadAllText(...));
but always get exceptions like: “Property ‘selector’ not found on type ‘KubeClient.Models.ServiceSpecV1’.”
What’s the magic salt I need to read in a .yaml?
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
Why can I not deserialize YAML into a record?
1 Answer 1 · deserialize YAML to object using YamlDotNet, · serialize that object to JSON via System.Text.Json , · and finally deserialize...
Read more >Learning to Deserialize YAML in C# with YamlDotNET
YamlDotNet provides a set of API's for both serializing and deserializing YAML files, we'll be using these to parse a tags.yml file we ......
Read more >Understanding YAML Deserialization | by Gupta Bless - Medium
Deserialization, on the other hand, is the process of turning data from an incoming byte stream into either a network object or data...
Read more >Learning More About YAML Deserialization
Deserialization refers to converting these byte streams back to the object form. But how can this lead to a vulnerability? The issue arises...
Read more >Python Yaml Deserialization - HackTricks
Yaml Deserialization ... Check how the tuple isn't a raw type of data and therefore it was serialized. And the same happened with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Don’t know if this is best way, but I had just thrown this in to get me moving
Hi, no probs. I’ve actually moved on, so I don’t rely on the fix anymore.
I really like the lib while I was using it.