Skip to content

Commit

Permalink
Merge pull request #146 from crisdut/fix/schema-global-state-validation
Browse files Browse the repository at this point in the history
Fix SchemaGlobalStateLimit Validation
  • Loading branch information
dr-orlovsky authored Mar 28, 2023
2 parents ba346d3 + 9989a47 commit 6976b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl<Root: SchemaRoot> Schema<Root> {
opid, *type_id, err,
));
}
if count >= *max_items {
if count > *max_items {
status.add_failure(validation::Failure::SchemaGlobalStateLimit(
opid, *type_id, count, *max_items,
));
Expand Down

0 comments on commit 6976b79

Please sign in to comment.