Node.js based forum software built for the modern web
fix(openapi): remove all repeated pagination blocks in favour of
Julian Lamac579f9dc22e
diff --git a/public/openapi/read.yaml b/public/openapi/read.yamlindex 1e0d09e1ae..39be426b9f 100644--- a/public/openapi/read.yaml+++ b/public/openapi/read.yaml@@ -1128,77 +1128,13 @@ paths:type: booleansearch_display:type: string- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: stringrequireEmailConfirmation:type: numberinviteOnly:type: booleanadminInviteOnly:type: boolean+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/admin/manage/users/search:get:@@ -1248,77 +1184,13 @@ paths:type: booleansearch_display:type: string- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: stringrequireEmailConfirmation:type: numberinviteOnly:type: booleanadminInviteOnly:type: boolean+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/admin/manage/users/not-validated:get:@@ -1348,77 +1220,13 @@ paths:type: booleansearch_display:type: string- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: stringrequireEmailConfirmation:type: numberinviteOnly:type: booleanadminInviteOnly:type: boolean+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/admin/manage/users/no-posts:get:@@ -1535,49 +1343,9 @@ paths:type: stringownerUid:type: number- pagination:- type: object- properties:- prev:- type: object- properties:- page:- type: number- active:- type: boolean- next:- type: object- properties:- page:- type: number- active:- type: boolean- first:- type: object- properties:- page:- type: number- active:- type: boolean- last:- type: object- properties:- page:- type: number- active:- type: boolean- rel:- type: array- items: {}- pages:- type: array- items: {}- currentPage:- type: number- pageCount:- type: numberyourid:type: number+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/admin/manage/groups/{name}":get:@@ -1742,71 +1510,7 @@ paths:type: booleandefault:type: string- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/admin/settings/{term?}":get:@@ -4068,47 +3772,6 @@ paths:type: numbertime:type: string- pagination:- type: object- properties:- prev:- type: object- properties:- page:- type: number- active:- type: boolean- next:- type: object- properties:- page:- type: number- active:- type: boolean- first:- type: object- properties:- page:- type: number- active:- type: boolean- last:- type: object- properties:- page:- type: number- active:- type: boolean- rel:- type: array- items: {}- pages:- type: array- items: {}- currentPage:- type: number- pageCount:- type: numbermultiplePages:type: booleansearch_query:@@ -4147,6 +3810,7 @@ paths:type: stringsearchDefaultSortBy:type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/reset/{code?}":get:@@ -4577,69 +4241,7 @@ paths:type: stringpostIndex:type: number- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/topic/{topic_id}/{slug?}":get:@@ -5097,69 +4699,6 @@ paths:type: stringpostIndex:type: number- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: stringloggedInUser:type: objectproperties:@@ -5182,6 +4721,7 @@ paths:value is used in conjunction with `icon:text` forthe user's auto-generated iconexample: "#f44336"+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/post/{pid}":get:@@ -5336,71 +4876,7 @@ paths:type: numbertitle:type: string- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/flags/{flagId}":get:@@ -5740,47 +5216,7 @@ paths:totalTopicCount:type: numberdescription: The number of topics in the category- pagination:- type: object- properties:- prev:- type: object- properties:- page:- type: number- active:- type: boolean- next:- type: object- properties:- page:- type: number- active:- type: boolean- first:- type: object- properties:- page:- type: number- active:- type: boolean- last:- type: object- properties:- page:- type: number- active:- type: boolean- rel:- type: array- items: {}- pages:- type: array- items: {}- currentPage:- type: number- pageCount:- type: number+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/ip-blacklist:get:@@ -6068,73 +5504,9 @@ paths:type: booleanimageClass:type: string- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: stringrssFeedUrl:type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/tags:get:@@ -6498,71 +5870,6 @@ paths:type: booleanterm:type: string- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: stringbreadcrumbs:type: arrayitems:@@ -6572,6 +5879,7 @@ paths:type: stringurl:type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/recent:get:@@ -6884,71 +6192,6 @@ paths:type: booleanterm:type: string- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: stringbreadcrumbs:type: arrayitems:@@ -6958,6 +6201,7 @@ paths:type: stringurl:type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/top:get:@@ -7290,71 +6534,6 @@ paths:type: booleanterm:type: string- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: stringbreadcrumbs:type: arrayitems:@@ -7364,6 +6543,7 @@ paths:type: stringurl:type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/unread:get:@@ -7590,47 +6770,6 @@ paths:type: stringpageCount:type: number- pagination:- type: object- properties:- prev:- type: object- properties:- page:- type: number- active:- type: boolean- next:- type: object- properties:- page:- type: number- active:- type: boolean- first:- type: object- properties:- page:- type: number- active:- type: boolean- last:- type: object- properties:- page:- type: number- active:- type: boolean- rel:- type: array- items: {}- pages:- type: array- items: {}- currentPage:- type: number- pageCount:- type: numbercategories:type: arrayitems:@@ -7695,6 +6834,7 @@ paths:type: booleanfilter:type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/category/{category_id}/{slug}/{topic_index}":get:@@ -8014,71 +7154,7 @@ paths:type: numberreputation:disabled:type: number- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/category/{category_id}/{slug?}":get:@@ -8409,71 +7485,7 @@ paths:type: numberreputation:disabled:type: number- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/me/*:get:@@ -9478,47 +8490,6 @@ paths:type: numbernextStart:type: number- pagination:- type: object- properties:- prev:- type: object- properties:- page:- type: number- active:- type: boolean- next:- type: object- properties:- page:- type: number- active:- type: boolean- first:- type: object- properties:- page:- type: number- active:- type: boolean- last:- type: object- properties:- page:- type: number- active:- type: boolean- rel:- type: array- items: {}- pages:- type: array- items: {}- currentPage:- type: number- pageCount:- type: numbernoItemsFoundKey:type: stringtitle:@@ -9545,6 +8516,7 @@ paths:type: stringselected:type: boolean+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/user/{userslug}/best":get:@@ -9860,47 +8832,6 @@ paths:items: {}nextStart:type: number- pagination:- type: object- properties:- prev:- type: object- properties:- page:- type: number- active:- type: boolean- next:- type: object- properties:- page:- type: number- active:- type: boolean- first:- type: object- properties:- page:- type: number- active:- type: boolean- last:- type: object- properties:- page:- type: number- active:- type: boolean- rel:- type: array- items: {}- pages:- type: array- items: {}- currentPage:- type: number- pageCount:- type: numbernoItemsFoundKey:type: stringtitle:@@ -9927,6 +8858,7 @@ paths:type: stringselected:type: boolean+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/user/{userslug}/watched":get:@@ -10319,69 +9251,6 @@ paths:type: numbernextStart:type: number- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: stringnoItemsFoundKey:type: stringtitle:@@ -10409,6 +9278,7 @@ paths:selected:type: boolean- $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/user/{userslug}/ignored":get:@@ -11258,47 +10128,6 @@ paths:type: stringsubject:type: string- pagination:- type: object- properties:- prev:- type: object- properties:- page:- type: number- active:- type: boolean- next:- type: object- properties:- page:- type: number- active:- type: boolean- first:- type: object- properties:- page:- type: number- active:- type: boolean- last:- type: object- properties:- page:- type: number- active:- type: boolean- rel:- type: array- items: {}- pages:- type: array- items: {}- currentPage:- type: number- pageCount:- type: numberfilters:type: arrayitems:@@ -11350,6 +10179,7 @@ paths:type: stringurl:type: string+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/user/{userslug}/chats/{roomid?}":get:@@ -11737,71 +10567,6 @@ paths:type: stringadministrator:type: boolean- pagination:- type: object- properties:- rel:- type: array- items:- type: object- properties:- rel:- type: string- href:- type: string- pages:- type: array- items:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- separator:- type: boolean- currentPage:- type: number- pageCount:- type: number- prev:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- next:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- first:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: string- last:- type: object- properties:- page:- type: number- active:- type: boolean- qs:- type: stringuserCount:type: numbertitle:@@ -11837,6 +10602,7 @@ paths:type: booleanreputation:disabled:type: number+ - $ref: components/schemas/Pagination.yaml#/Pagination- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/groups:get: