Skip to content

Commit

Permalink
HasIndexerProperty check AllowAdditionalProperties (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalisky committed Sep 16, 2022
1 parent d76549a commit d9d715a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ public string Inheritance

/// <summary>Gets a value indicating whether the class inherits from dictionary.</summary>
public bool HasIndexerProperty => _schema.IsDictionary ||
_schema.InheritedSchema?.IsDictionary == true;
_schema.InheritedSchema?.IsDictionary == true ||
_schema.ActualTypeSchema.AllowAdditionalProperties ||
_schema.ActualTypeSchema.AdditionalPropertiesSchema != null;

/// <summary>Gets the type of the indexer property value.</summary>
public string IndexerPropertyValueType
Expand Down

0 comments on commit d9d715a

Please sign in to comment.