ecsjobs.schema module
- class ecsjobs.schema.Schema[source]
Bases:
object- base_schema = {'$id': 'http://schemas.jasonantman.com/github/ecsjobs/config.json', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'additionalProperties': False, 'definitions': {}, 'description': 'Overall ecsjobs (Python package) configuration', 'properties': {'global': {'additionalProperties': False, 'properties': {'email_subject': {'type': 'string'}, 'failure_command': {'items': {'type': 'string'}, 'type': 'array'}, 'failure_html_path': {'type': 'string'}, 'from_email': {'format': 'email', 'type': 'string'}, 'inter_poll_sleep_sec': {'type': 'integer'}, 'max_total_runtime_sec': {'type': 'integer'}, 'to_email': {'oneOf': [{'items': {'format': 'email', 'type': 'string'}, 'type': 'array'}, {'format': 'email', 'type': 'string'}]}}, 'required': ['from_email', 'to_email'], 'title': 'Global configuration for application', 'type': 'object'}, 'jobs': {'description': 'Array of items that construct Job subclass instances', 'items': {'anyOf': []}, 'title': 'Array of Jobs to run', 'type': 'array'}}, 'required': ['global', 'jobs'], 'title': 'ECSJobs configuration schema', 'type': 'object'}
- property schema_dict
Return the full generated schema dict.
- Returns:
generated JSONSchema
- Return type: