Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
for k in totals: totals[k]+=int(r.get(k,'0'))
except Exception:
pass
exp_tests=463
exp_tests=464
exp_skipped=0
if totals['tests']!=exp_tests or totals['skipped']!=exp_skipped:
print(f"Unexpected test totals: {totals} != expected tests={exp_tests}, skipped={exp_skipped}")
Expand Down
4 changes: 2 additions & 2 deletions json-java21-jtd/src/main/java/json/java21/jtd/Jtd.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ JtdSchema compilePropertiesSchema(JsonObject obj) {
}
additionalProperties = bool.value();
} else if (properties.isEmpty() && optionalProperties.isEmpty()) {
// Empty schema with no properties defined allows additional properties by default
additionalProperties = true;
// Empty schema with no properties defined rejects additional properties by default
additionalProperties = false;
}

return new JtdSchema.PropertiesSchema(properties, optionalProperties, additionalProperties);
Expand Down
Loading