Skip to content

Commit

Permalink
fix: Add comments and make sure that code is required for a checks.yml
Browse files Browse the repository at this point in the history
in validate.py.
  • Loading branch information
gkapfham committed Jul 27, 2023
1 parent 0cc391a commit 34ea78b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion chasten/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

from chasten import constants

# intuitive description:
# a configuration file links to one or more checks files
# see ./chasten in the root of the repository for the config.yml file
JSON_SCHEMA_CONFIG = {
"type": "object",
"required": [],
Expand All @@ -25,6 +28,9 @@
},
}

# intutive description:
# a checks file describes all of the details for one or more checks
# see ./chasten in the root of the repository for the checks.yml file
JSON_SCHEMA_CHECKS = {
"type": "object",
"properties": {
Expand All @@ -51,7 +57,7 @@
]
},
},
"required": ["name", "id", "pattern"],
"required": ["name", "id", "pattern", "code"],
"additionalProperties": False,
},
}
Expand Down

0 comments on commit 34ea78b

Please sign in to comment.