You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alex Wichmann edited this page Jun 11, 2025
·
2 revisions
The AsyncApiReader is a component in the .NET library that can be used to deserialize AsyncAPI specifications from either JSON or YAML formats. The deserialized AsyncAPI document can then be manipulated in memory as a C# object.
Basic usage
To use any of the AsyncApiReaders, you first need to create an instance.
There are 3 types of readers, which all have the same API
AsyncApiStringReader
AsyncApiStreamReader
AsyncApiTextReader
To use any of the AsyncApiReaders, you first need to create an instance.
When calling .Read() the reader will output any and all Diagnostics errors and warnings. These can be both from Serialization errors/warnings (if the specification is not proper json/yaml) or from validation errors/warnings
All diagnostic messages will contain a pointer to what failed, see example under ValidationRules