Skip to content

Commit

Permalink
fix state global validation
Browse files Browse the repository at this point in the history
  • Loading branch information
crisdut committed Mar 28, 2023
1 parent ba346d3 commit 9989a47
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 9989a47

Please sign in to comment.