feat(commit): individual packages from config respected
This commit is contained in:
+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