Comments (5)
@dstelljes, this functionality would be useful for the documents team. Is this still on track for the 8.0.0 milestone? Until this gets in, we'll be running dotnet avro and then hand-editing the output any time we need to update our schema.
from dotnet-avro.
Yeah, it will be included in 8.0.0; we’re hoping to finally get it out the door early Q4.
from dotnet-avro.
Hi,
I implemented schema support for Nullable Reference Types for fields in records in a project and I wanted to share my code. You can see it here:
https://gist.github.com/teemka/4c77ed9cce130c9df4b92c436583d693
Keep in mind that this implementation is not complete. It's missing:
- Nullable types in array
- Top level record is not being checked (only its fields).
from dotnet-avro.
Thanks for sharing! As I understand it, checking the top-level record isn’t actually possible; .BuildSchema<Record>()
and .BuildSchema<Record?>
are indistinguishable.
from dotnet-avro.
Released with 8.0.0-pre.1.
from dotnet-avro.
Related Issues (20)
- Getting "The encoded data does not conform to the Confluent wire format" exception while consuming message
- Upper vs lower case when generating C# from Avro HOT 2
- Is it possible to generate class with Guid ? HOT 3
- Nullable fields from schema are not reflected in generated C# HOT 8
- [proposal] Introduce custom logicalType
- Nullable enums fields are not deserialized HOT 1
- 'Chr.Avro.Confluent Producer' generating error when the message has more than one properties with similar names separated only by a '_' HOT 2
- Unable to generate schema for type defined in .NET 5 assembly #127 HOT 4
- Unable to generate a schema with default values HOT 2
- Default values support in codegen HOT 5
- `[EnumMember]` value should be used when serializing enum types to `"string"`
- Add support for NodaTime HOT 1
- Could not load file or assembly System.ServiceModel.Primitives.dll HOT 1
- Method not found exception HOT 1
- Union with null and multiple selected types throws exception when serializing null. HOT 1
- Exception serializing an anonymous object HOT 3
- No coercion operator is defined between types 'System.String' and 'System.Char[]'. on a simple string property HOT 8
- Exception when building a serializer for type with a missing field from the schema HOT 2
- Support C# records in codegen HOT 1
- Support DateOnly and TimeOnly types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-avro.