mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 08:51:30 -05:00
Merge pull request #680 from alphagov/update-return-all-notifications-schema
Update schema to validate contents of GET notifications
This commit is contained in:
@@ -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 (
|
||||||
|
|||||||
@@ -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"},
|
||||||
|
|||||||
Reference in New Issue
Block a user