Skip to content

Commit 9363ffb

Browse files
author
Paul Brätz
committed
add interface/struct annotation support
1 parent ee339e0 commit 9363ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JsonSchemaGenerator/Attributes/JsonSchemaAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace RhoMicro.CodeAnalysis;
55
/// <summary>
66
/// Marks the targeted type for json schema generation.
77
/// </summary>
8-
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
8+
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
99
#if GENERATOR
1010
[IncludeFile]
1111
#endif

0 commit comments

Comments
 (0)