SYSLIB diagnostics for System.Text.Json source generation
The following table shows the diagnostic IDs for System.Text.Json source-generation analyzers in .NET 8 and later versions.
Diagnostic ID | Description |
---|---|
SYSLIB1220 |
JsonSourceGenerator encountered a JsonConverterAttribute with an invalid type argument. |
SYSLIB1221 |
JsonSourceGenerator does not support this C# language version. |
SYSLIB1222 |
Constructor annotated with JsonConstructorAttribute is inaccessible. |
SYSLIB1223 |
Attributes deriving from JsonConverterAttribute are not supported by the source generator. |
SYSLIB1224 |
Types annotated with JsonSerializableAttribute must be classes deriving from JsonSerializerContext . |
SYSLIB1225 |
Reserved for System.Text.Json.SourceGeneration. |
SYSLIB1226 |
Reserved for System.Text.Json.SourceGeneration. |
SYSLIB1227 |
Reserved for System.Text.Json.SourceGeneration. |
SYSLIB1228 |
Reserved for System.Text.Json.SourceGeneration. |
SYSLIB1229 |
Reserved for System.Text.Json.SourceGeneration. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for