aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/schemas/paginated_collection_schema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/json-schemas/schemas/paginated_collection_schema.ts')
-rw-r--r--packages/json-schemas/schemas/paginated_collection_schema.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/json-schemas/schemas/paginated_collection_schema.ts b/packages/json-schemas/schemas/paginated_collection_schema.ts
new file mode 100644
index 000000000..5dd82ab3d
--- /dev/null
+++ b/packages/json-schemas/schemas/paginated_collection_schema.ts
@@ -0,0 +1,10 @@
+export const paginatedCollectionSchema = {
+ id: '/PaginatedCollection',
+ type: 'object',
+ properties: {
+ total: { $ref: '/Number' },
+ per_page: { $ref: '/Number' },
+ page: { $ref: '/Number' },
+ },
+ required: ['total', 'per_page', 'page'],
+};