Skip to content

Node.js based forum software built for the modern web

fix: remove reference to hallucinated schema, fix hideSave definitions

Julian Lamef2a17f25d99
diff --git a/public/openapi/read/admin/federation/analytics.yaml b/public/openapi/read/admin/federation/analytics.yaml
index 1ee17b1f63..227b75bf42 100644
--- a/public/openapi/read/admin/federation/analytics.yaml
+++ b/public/openapi/read/admin/federation/analytics.yaml
@@ -9,12 +9,14 @@ get:
required: false
schema:
type: string
+ example: example.org
- name: term
in: query
description: The time period to retrieve analytics for (daily or hourly)
required: false
schema:
type: string
+ example: hourly
responses:
"200":
description: Analytics data
@@ -33,13 +35,16 @@ get:
received:
type: array
items:
- $ref: ../../../components/schemas/admin/stats.yaml#/StatsArray
+ type: number
receivedErr:
type: array
items:
- $ref: ../../../components/schemas/admin/stats.yaml#/StatsArray
+ type: number
sent:
type: array
items:
- $ref: ../../../components/schemas/admin/stats.yaml#/StatsArray
+ type: number
+ hideSave:
+ type: number
+ description: A flag to instruct the template engine to hide the save button
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
diff --git a/public/openapi/read/admin/federation/errors.yaml b/public/openapi/read/admin/federation/errors.yaml
index 7eac1285e5..2bf7a1895b 100644
--- a/public/openapi/read/admin/federation/errors.yaml
+++ b/public/openapi/read/admin/federation/errors.yaml
@@ -13,11 +13,17 @@ get:
properties:
title:
type: string
- hideSave:
- type: boolean
- description: A flag to instruct the template engine to hide the save button
errors:
type: array
items:
- $ref: ../../../components/schemas/admin/error.yaml#/ErrorObject
+ type: object
+ properties:
+ id:
+ type: string
+ body:
+ type: string
+ stack:
+ type: string
+ hostname:
+ type: string
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
diff --git a/src/controllers/admin/federation.js b/src/controllers/admin/federation.js
index 29be877ec5..95cfedc5e5 100644
--- a/src/controllers/admin/federation.js
+++ b/src/controllers/admin/federation.js
@@ -104,7 +104,6 @@ federationController.errors = async function (req, res) {
res.render('admin/federation/errors', {
title: '[[admin/menu:federation/errors]]',
- hideSave: 1,
errors,
});
};