Archived
feat(commit): individual packages from config respected
This commit is contained in:
1 parent
b7218c2a82
commit
ecb2952a7e
9 files changed
+69
-16
No files matched your search
+9
-1
@@ -5,7 +5,15 @@ with open("config.schema.json") as file:
|
||||
schema = json.load(file)
|
||||
|
||||
|
||||
def validate(config):
|
||||
def validate(config: dict | list):
|
||||
"""Validate the specified config
|
||||
|
||||
Args:
|
||||
config: The raw configuration
|
||||
|
||||
Returns:
|
||||
True if the config is valid, False otherwise
|
||||
"""
|
||||
try:
|
||||
jsonschema.validate(config, schema)
|
||||
except jsonschema.SchemaError:
|
||||
|
||||
Reference in new issue
Block a user