Skip to content

Commit fcbabd4

Browse files
committed
Add the SpecVersionAttribute decorator to the custom Extensions keyword for JsonSchema.NET to qualify it as a valid keyword
1 parent 889fcde commit fcbabd4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Microsoft.OpenApi/Extensions/JsonSchemaBuilderExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ public void Evaluate(EvaluationContext context)
278278
/// The extensions keyword
279279
/// </summary>
280280
[SchemaKeyword(Name)]
281+
[SchemaSpecVersion(SpecVersion.Draft202012)]
281282
public class ExtensionsKeyword : IJsonSchemaKeyword
282283
{
283284
/// <summary>

0 commit comments

Comments
 (0)