Merge pull request #680 from alphagov/update-return-all-notifications-schema

Update schema to validate contents of GET notifications
This commit is contained in:
imdadahad
2016-09-21 09:52:51 +01:00
committed by GitHub
2 changed files with 12 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ import uuid
from datetime import datetime from datetime import datetime
from flask import json from flask import json
from freezegun import freeze_time from freezegun import freeze_time
from mock import call from unittest.mock import call
import app.celery.tasks import app.celery.tasks
from app.dao.notifications_dao import ( from app.dao.notifications_dao import (

View File

@@ -14,6 +14,17 @@
}, },
"links": { "links": {
"type": "object", "type": "object",
"properties" : {
"prev" : {
"type" : "string"
},
"next" : {
"type" : "string"
},
"last": {
"type" : "string"
}
},
"additionalProperties": false "additionalProperties": false
}, },
"page_size": {"type": "number"}, "page_size": {"type": "number"},