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

fastify-swagger

Package Overview
Dependencies
Maintainers
8
Versions
100
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 2.2.1 to 2.3.0

8

dynamic.js

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

// the resulting schema will be in this order
if (schema.operationId) {
swaggerMethod.operationId = schema.operationId
}
if (schema.summary) {

@@ -132,2 +136,6 @@ swaggerMethod.summary = schema.summary

if (schema.produces) {
swaggerMethod.produces = schema.produces
}
if (schema.consumes) {

@@ -134,0 +142,0 @@ swaggerMethod.consumes = schema.consumes

2

package.json
{
"name": "fastify-swagger",
"version": "2.2.1",
"version": "2.3.0",
"description": "Generate Swagger files automatically for Fastify.",

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

@@ -441,3 +441,3 @@ 'use strict'

test('route meta info', t => {
t.plan(6)
t.plan(8)
const fastify = Fastify()

@@ -449,5 +449,7 @@

schema: {
operationId: 'doSomething',
summary: 'Route summary',
tags: ['tag'],
description: 'Route description',
produces: ['application/octet-stream'],
consumes: ['application/x-www-form-urlencoded']

@@ -467,5 +469,7 @@ }

t.ok(definedPath)
t.equal(opts.schema.operationId, definedPath.operationId)
t.equal(opts.schema.summary, definedPath.summary)
t.same(opts.schema.tags, definedPath.tags)
t.equal(opts.schema.description, definedPath.description)
t.same(opts.schema.produces, definedPath.produces)
t.same(opts.schema.consumes, definedPath.consumes)

@@ -472,0 +476,0 @@ })

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