Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fastify/swagger

Package Overview
Dependencies
Maintainers
18
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastify/swagger - npm Package Compare versions

Comparing version 6.0.1 to 6.1.0

2

lib/spec/openapi/utils.js

@@ -28,2 +28,3 @@ 'use strict'

return {
...openapi,
info,

@@ -55,2 +56,3 @@ servers,

if (opts.openapi) openapiObject.openapi = opts.openapi
if (opts.info) openapiObject.info = opts.info

@@ -57,0 +59,0 @@ if (opts.servers) openapiObject.servers = opts.servers

2

package.json
{
"name": "@fastify/swagger",
"version": "6.0.1",
"version": "6.1.0",
"description": "Serve Swagger/OpenAPI documentation for Fastify, supporting dynamic generation",

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

@@ -25,2 +25,16 @@ 'use strict'

test('openapi version can be overridden', t => {
t.plan(2)
const fastify = Fastify()
fastify.register(fastifySwagger, { openapi: { openapi: '3.1.0' } })
fastify.ready(err => {
t.error(err)
const openapiObject = fastify.swagger()
t.equal(openapiObject.openapi, '3.1.0')
})
})
test('openapi should have default info properties', t => {

@@ -27,0 +41,0 @@ t.plan(3)

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc