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..16044c70a
--- /dev/null
+++ b/packages/json-schemas/schemas/paginated_collection_schema.ts
@@ -0,0 +1,10 @@
+export const paginatedCollectionSchema = {
+ id: '/paginatedCollectionSchema',
+ type: 'object',
+ properties: {
+ total: { type: 'number' },
+ perPage: { type: 'number' },
+ page: { type: 'number' },
+ },
+ required: ['total', 'perPage', 'page'],
+};