Skip to content

Commit

Permalink
Add rule to restrict empty module
Browse files Browse the repository at this point in the history
  • Loading branch information
arschat committed Jul 29, 2024
1 parent 9365641 commit fcb3e7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions json_schema/module/biomaterial/medical_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"title": "Medical tests",
"name": "medical_tests",
"type": "object",
"minProperties": 1,
"properties": {
"describedBy": {
"description": "The URL reference to the schema.",
Expand Down
2 changes: 1 addition & 1 deletion src/schema_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

required_schema_fields = ['$schema', 'description', 'additionalProperties', 'title', 'name', 'type', 'properties']

allowed_schema_fields = ['$schema', 'description', 'additionalProperties', 'required', 'title', 'name', 'type', 'properties', 'definitions', 'dependencies', 'if', 'then', 'else']
allowed_schema_fields = ['$schema', 'description', 'additionalProperties', 'required', 'title', 'name', 'type', 'properties', 'definitions', 'dependencies', 'if', 'then', 'else', 'minProperties']

# Properties

Expand Down

0 comments on commit fcb3e7e

Please sign in to comment.