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
Copy file name to clipboardExpand all lines: src/FluentCommand.Generators/DiagnosticDescriptors.cs
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -86,4 +86,30 @@ internal static class DiagnosticDescriptors
86
86
isEnabledByDefault:true,
87
87
description:"The source generator skips static and abstract types annotated with [Table]. Remove the attribute or make the type non-static and non-abstract."
88
88
);
89
+
90
+
/// <summary>
91
+
/// FLC007: [JsonColumn] options provider type is invalid.
messageFormat:"The [JsonColumn] options provider type '{0}' must expose a static Options property of type System.Text.Json.JsonSerializerOptions",
97
+
category:Category,
98
+
defaultSeverity:DiagnosticSeverity.Error,
99
+
isEnabledByDefault:true,
100
+
description:"The [JsonColumn(typeof(TProvider))] attribute requires a provider type with a static Options property compatible with System.Text.Json.JsonSerializerOptions."
101
+
);
102
+
103
+
/// <summary>
104
+
/// FLC008: [JsonColumn] serializer context type or property is invalid.
messageFormat:"The [JsonColumn] serializer context type '{0}' must derive from System.Text.Json.Serialization.JsonSerializerContext and expose a property named '{1}'",
110
+
category:Category,
111
+
defaultSeverity:DiagnosticSeverity.Error,
112
+
isEnabledByDefault:true,
113
+
description:"The [JsonColumn(typeof(TContext), name)] attribute requires a serializer context type and a named type-info property that exists on the context."
0 commit comments