Socket
Socket
Sign inDemoInstall

@fastify/swagger

Package Overview
Dependencies
9
Maintainers
20
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.12.1 to 8.12.2

7

examples/options.js

@@ -55,2 +55,6 @@ 'use strict'

in: 'header'
},
bearerAuth: {
type: 'http',
scheme: 'bearer'
}

@@ -60,3 +64,4 @@ }

security: [{
apiKey: []
apiKey: [],
bearerAuth: []
}],

@@ -63,0 +68,0 @@ externalDocs: {

5

lib/spec/openapi/utils.js

@@ -376,3 +376,6 @@ 'use strict'

Object.keys(securitySchemeGroup).forEach((securitySchemeLabel) => {
const { name, in: category } = openapiObject.components.securitySchemes[securitySchemeLabel]
const scheme = openapiObject.components.securitySchemes[securitySchemeLabel]
const isBearer = scheme.type === 'http' && scheme.scheme === 'bearer'
const category = isBearer ? 'header' : scheme.in
const name = isBearer ? 'authorization' : scheme.name
if (!acc[category]) {

@@ -379,0 +382,0 @@ acc[category] = []

{
"name": "@fastify/swagger",
"version": "8.12.1",
"version": "8.12.2",
"description": "Serve Swagger/OpenAPI documentation for Fastify, supporting dynamic generation",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -650,2 +650,6 @@ 'use strict'

},
bearerAuth: {
type: 'string',
description: 'authorization bearer'
},
id: {

@@ -652,0 +656,0 @@ type: 'string',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc