Skip to content

Commit 71dfe86

Browse files
committed
Fix missing negation
1 parent 66a8a1a commit 71dfe86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OpenApi/src/Extensions/JsonNodeSchemaExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ internal static void ApplyDefaultValue(this JsonNode schema, object? defaultValu
175175
return;
176176
}
177177

178-
var isReferencedSchema = schema[OpenApiConstants.SchemaId] is null;
178+
var isReferencedSchema = schema[OpenApiConstants.SchemaId] is not null;
179179
var schemaAttribute = isReferencedSchema ? OpenApiConstants.RefDefaultAnnotation : OpenApiSchemaKeywords.DefaultKeyword;
180180

181181
if (defaultValue is null)

0 commit comments

Comments
 (0)