Files
notifications-api/app/billing/billing_schemas.py
2017-10-26 13:25:11 +01:00

15 lines
504 B
Python

from app.schema_validation.definitions import uuid, https_url
create_or_update_free_sms_fragment_limit_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST annual billing schema",
"type": "object",
"title": "Create",
"properties": {
"free_sms_fragment_limit": {"type": "integer", "minimum": 1},
"financial_year_start": {"type": "integer", "minimum": 2016}
},
"required": ["free_sms_fragment_limit", "financial_year_start"]
}