Skip to content

Commit

Permalink
UPD: add additionalProperties = false to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudocubic committed Nov 5, 2024
1 parent 7d20752 commit bcd9b40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ravens/schema/decompose_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def decompose_schema(self, schema: dict, debug_key: str = None) -> str:

if isinstance(_schema, dict):
_schema["$schema"] = _schema_url
_schema["additionalProperties"] = False

title = _schema.get("title", None)
if title is not None:
if "patternProperties" in _schema:
Expand Down

0 comments on commit bcd9b40

Please sign in to comment.