Advertisement · 728 × 90

Posts by Josef

Preview
Deserialization does not fail when a required property is null · Issue #88727 · dotnet/runtime Description The JsonSerializer.Deserialize method does not behave the same way when deserializing a required property. If the json does not contain the required property at all -> an JsonException ...

Just created an issue regarding System.Text.Json and required/non-null properties. I would expect the deserialization to behave the same way regardless of if the property is present in the json or present but explicitly set to null.

Thoughts?

https://github.com/dotnet/runtime/issues/88727

#dotnet

2 years ago 0 0 0 0

Haha det är väldigt mycket som inte finns än, framförallt PERSONER...

2 years ago 0 0 1 0

If I create the file manually in the consuming application, STJ picks it up just fine.

I assume it's not possible to "chain" source generators?

#dotnet #dotnetcore

Ping @damianedwards.com @davidfowl.com

2 years ago 0 0 1 0

I've built a source generator that generates some types. As a good citizen I also want to generate a JsonSerializerContext so consumers of my library can de/serialize the types correctly.

I've generated the file correctly but it doesn't work (STJ is not doing any source generation).

2 years ago 0 0 1 0
Post image

New covers 🤤
#tesla #modely

2 years ago 1 0 0 0

Nice, thanks!!

2 years ago 1 0 0 0

Awesome, thank you!!! :)

2 years ago 1 0 0 0

How does this even work? How do I search for custom feeds? Formula 1? Tech? Dotnet? Csharp?

2 years ago 2 0 2 0
JOS.Enumeration - Now using source generators By using source generators, we can speed up the retrieval of enumeration values quite a bit!

Hello world! My first...message (?) will be a link to my latest blog post where I use source generators on my enumeration package.

josef.codes/jos-enumeration-now-usin...

#dotnet #dotnetcore

2 years ago 6 0 0 0
Advertisement