mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-22 08:58:57 -04:00
simple schema with oneOf [email, sms]. also fixed error where ref'd schemas weren't being picked up
13 lines
385 B
JSON
13 lines
385 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"description": "Common definitions - usage example: {'$ref': 'definitions.json#/uuid'} (swap quotes for double quotes)",
|
|
"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}$"
|
|
},
|
|
"datetime": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
}
|