Aktueller Stand

This commit is contained in:
2026-01-22 19:05:45 +01:00
parent 85dee61a4d
commit e280e4eadb
1967 changed files with 397327 additions and 74093 deletions

View File

@@ -28,7 +28,7 @@ function fastifySwagger (fastify, opts, done) {
}
if (typeof staticCSP === 'string' || typeof opts.transformStaticCSP === 'function') {
fastify.addHook('onSend', function (request, reply, payload, done) {
fastify.addHook('onSend', function (_request, reply, _payload, done) {
// set static csp when it is passed
if (typeof staticCSP === 'string') {
reply.header('content-security-policy', staticCSP.trim())
@@ -62,7 +62,7 @@ function fastifySwagger (fastify, opts, done) {
method: 'GET',
schema: { hide: true },
...hooks,
handler: (req, reply) => {
handler: (_req, reply) => {
reply
.header('content-type', 'text/css; charset=UTF-8')
.send(cssFile.content)
@@ -78,7 +78,7 @@ function fastifySwagger (fastify, opts, done) {
method: 'GET',
schema: { hide: true },
...hooks,
handler: (req, reply) => {
handler: (_req, reply) => {
reply
.header('content-type', 'application/javascript; charset=utf-8')
.send(jsFile.content)
@@ -94,7 +94,7 @@ function fastifySwagger (fastify, opts, done) {
method: 'GET',
schema: { hide: true },
...hooks,
handler: (req, reply) => {
handler: (_req, reply) => {
reply
.header('content-type', favicon.type)
.send(favicon.content)
@@ -135,7 +135,7 @@ function fastifySwagger (fastify, opts, done) {
method: 'GET',
schema: { hide: true },
...hooks,
handler: (req, reply) => {
handler: (_req, reply) => {
reply
.header('content-type', 'application/javascript; charset=utf-8')
.send(swaggerInitializerContent)
@@ -158,7 +158,7 @@ function fastifySwagger (fastify, opts, done) {
: function (req, reply) {
reply.send(transformSpecification(fastify.swagger(), req, reply))
}
: function (req, reply) {
: function (_req, reply) {
reply.send(fastify.swagger())
}
})
@@ -180,7 +180,7 @@ function fastifySwagger (fastify, opts, done) {
.type('application/x-yaml')
.send(yaml.stringify(transformSpecification(fastify.swagger(), req, reply)))
}
: function (req, reply) {
: function (_req, reply) {
reply
.type('application/x-yaml')
.send(fastify.swagger({ yaml: true }))