Skip to content

Commit

Permalink
Attempt to fix inheritance issue RicoSuter/NSwag#4138 (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
binginsin authored Sep 26, 2023
1 parent e64b2f3 commit 80146f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NJsonSchema/JsonSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public JsonSchema InheritedTypeSchema
{
get
{
if (ActualTypeSchema.IsDictionary || ActualTypeSchema.IsArray || ActualTypeSchema.IsTuple)
if (InheritedSchema == null && (ActualTypeSchema.IsDictionary || ActualTypeSchema.IsArray || ActualTypeSchema.IsTuple))
{
return ActualTypeSchema;
}
Expand Down

0 comments on commit 80146f7

Please sign in to comment.