Node.js based forum software built for the modern web
fix(openapi): removed repeated breadcrumb blocks in favour of $ref
Julian Lam646fac1e53d1
diff --git a/public/openapi/read.yaml b/public/openapi/read.yamlindex 39be426b9f..4a9c6d3dda 100644--- a/public/openapi/read.yaml+++ b/public/openapi/read.yaml@@ -2925,15 +2925,6 @@ paths:type: stringimageClass:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringtopics:type: arrayitems:@@ -3135,6 +3126,7 @@ paths:type: stringisQuestion:nullable: true+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/categories/{cid}/moderators":get:@@ -3536,21 +3528,13 @@ paths:type: booleanallowLoginWith:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringtitle:type: stringallowPasswordReset:type: booleanallowLocalLogin:type: boolean+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/register:get:@@ -3595,15 +3579,6 @@ paths:type: numberminimumPasswordStrength:type: number- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringregFormEntry:type: arrayitems:@@ -3617,6 +3592,7 @@ paths:type: stringtitle:type: string+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/register/complete:get:@@ -3791,15 +3767,6 @@ paths:type: stringcategoriesCount:type: number- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringexpandSearch:type: booleanshowAsPosts:@@ -3811,6 +3778,7 @@ paths:searchDefaultSortBy:type: string- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/reset/{code?}":get:@@ -4168,15 +4136,6 @@ paths:icons:type: arrayitems: {}- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringprivileges:type: objectproperties:@@ -4242,6 +4201,7 @@ paths:postIndex:type: number- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/topic/{topic_id}/{slug?}":get:@@ -4626,15 +4586,6 @@ paths:icons:type: arrayitems: {}- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringprivileges:type: objectproperties:@@ -4722,6 +4673,7 @@ paths:the user's auto-generated iconexample: "#f44336"- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/post/{pid}":get:@@ -5467,15 +5419,6 @@ paths:type: numbertag:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringtitle:type: stringcategories:@@ -5507,6 +5450,7 @@ paths:rssFeedUrl:type: string- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/tags:get:@@ -5546,17 +5490,9 @@ paths:type: booleannextStart:type: number- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringtitle:type: string+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/popular:get:@@ -5870,16 +5806,8 @@ paths:type: booleanterm:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: string- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/recent:get:@@ -6192,16 +6120,8 @@ paths:type: booleanterm:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: string- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/top:get:@@ -6534,16 +6454,8 @@ paths:type: booleanterm:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: string- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/unread:get:@@ -6801,15 +6713,6 @@ paths:selectedCids:type: arrayitems: {}- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringfilters:type: arrayitems:@@ -6835,6 +6738,7 @@ paths:filter:type: string- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/category/{category_id}/{slug}/{topic_index}":get:@@ -7113,15 +7017,6 @@ paths:type: booleanisIgnored:type: boolean- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringtitle:type: stringprivileges:@@ -7155,6 +7050,7 @@ paths:reputation:disabled:type: number- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/category/{category_id}/{slug?}":get:@@ -7444,15 +7340,6 @@ paths:type: booleanisIgnored:type: boolean- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringtitle:type: stringprivileges:@@ -7486,6 +7373,7 @@ paths:reputation:disabled:type: number- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/me/*:get:@@ -7863,15 +7751,6 @@ paths:type: booleanhasPrivateChat:type: number- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringtitle:type: stringallowCoverPicture:@@ -7927,6 +7806,7 @@ paths:type: stringcover:thumb:url:type: string+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/user/{userslug}/following":get:@@ -8494,15 +8374,6 @@ paths:type: stringtitle:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringshowSort:type: booleansortOptions:@@ -8517,6 +8388,7 @@ paths:selected:type: boolean- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/user/{userslug}/best":get:@@ -8836,15 +8708,6 @@ paths:type: stringtitle:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringshowSort:type: booleansortOptions:@@ -8859,6 +8722,7 @@ paths:selected:type: boolean- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/user/{userslug}/watched":get:@@ -9255,15 +9119,6 @@ paths:type: stringtitle:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringshowSort:type: booleansortOptions:@@ -9279,6 +9134,7 @@ paths:type: boolean- $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/user/{userslug}/ignored":get:@@ -10018,15 +9874,7 @@ paths:items: {}title:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: string+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/user/{userslug}/session/{uuid}":delete:@@ -10170,16 +10018,8 @@ paths:type: booleantitle:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: string- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/user/{userslug}/chats/{roomid?}":get:@@ -10571,15 +10411,6 @@ paths:type: numbertitle:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: stringisAdminOrGlobalMod:type: booleanisAdmin:@@ -10603,6 +10434,7 @@ paths:reputation:disabled:type: number- $ref: components/schemas/Pagination.yaml#/Pagination+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps/api/groups:get:@@ -10709,15 +10541,7 @@ paths:type: numbertitle:type: string- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: string+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/groups/{slug}":get:@@ -10985,15 +10809,7 @@ paths:type: booleanallowPrivateGroups:type: number- breadcrumbs:- type: array- items:- type: object- properties:- text:- type: string- url:- type: string+ - $ref: components/schemas/Breadcrumbs.yaml#/Breadcrumbs- $ref: components/schemas/CommonProps.yaml#/CommonProps"/api/groups/{slug}/members":get: