Socket
Socket
Sign inDemoInstall

@fastify/swagger

Package Overview
Dependencies
35
Maintainers
18
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0 to 7.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": "7.0.0",
"version": "7.1.0",
"description": "Serve Swagger/OpenAPI documentation for Fastify, supporting dynamic generation",

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

@@ -23,2 +23,14 @@ 'use strict'

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

@@ -25,0 +37,0 @@ t.plan(2)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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