Skip to content

Commit

Permalink
Added items to Schema equals and hashcode
Browse files Browse the repository at this point in the history
Fixed a problem where `Schema` was not using the `items` property in the `equals()` or `hashcode()` method. This appears to have been missed when moving the `items` property off of the `ArraySchema` class and onto the `Schema` class.
  • Loading branch information
jeff-miller-cfa authored and frantuma committed May 26, 2022
1 parent 6480951 commit f006b13
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,8 @@ public boolean equals(java.lang.Object o) {
Objects.equals(this.dependentSchemas, schema.dependentSchemas) &&
Objects.equals(this.$comment, schema.$comment) &&
Objects.equals(this.examples, schema.examples) &&
Objects.equals(this.prefixItems, schema.prefixItems)
Objects.equals(this.prefixItems, schema.prefixItems) &&
Objects.equals(this.items, schema.items)

;
}
Expand All @@ -1979,7 +1980,7 @@ public int hashCode() {
discriminator, _enum, _default, patternProperties, $id, $anchor, $schema, types, allOf, anyOf, oneOf, _const,
contentEncoding, contentMediaType, contentSchema, propertyNames, unevaluatedProperties, maxContains,
minContains, additionalItems, unevaluatedItems, _if, _else, then, dependentRequired, dependentSchemas,
$comment, examples, prefixItems);
$comment, examples, prefixItems, items);
}

public java.util.Map<String, Object> getExtensions() {
Expand Down

0 comments on commit f006b13

Please sign in to comment.