V2 schemas for post sms notifications, post_sms_request and post_sms_response

This commit is contained in:
Rebecca Law
2016-10-25 14:53:31 +01:00
parent e5bedbd789
commit a5e07d8aff
6 changed files with 193 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
"""
Definitions are intended for schema definitions that are not likely to change from version to version.
If the definition is specific to a version put it in a definition file in the version package
"""
uuid = {
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$",
"validationMessage": "not a valid UUID",
"code": "1001", # yet to be implemented
"link": "link to our error documentation not yet implemented"
}
personalisation = {
"type": "object",
"validationMessage": "should contain key value pairs",
"code": "1001", # yet to be implemented
"link": "link to our error documentation not yet implemented"
}