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

@fastify/swagger

Package Overview
Dependencies
Maintainers
19
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 8.3.0 to 8.3.1

4

index.d.ts
import { FastifyPluginCallback, FastifySchema, onRequestHookHandler, preHandlerHookHandler } from 'fastify';
import { OpenAPI, OpenAPIV2, OpenAPIV3 } from 'openapi-types';
import { OpenAPI, OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from 'openapi-types';

@@ -116,3 +116,3 @@ /**

swagger?: Partial<OpenAPIV2.Document>;
openapi?: Partial<OpenAPIV3.Document>
openapi?: Partial<OpenAPIV3.Document | OpenAPIV3_1.Document>
hiddenTag?: string;

@@ -119,0 +119,0 @@ hideUntagged?: boolean;

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

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

@@ -177,6 +177,25 @@ import fastify from 'fastify';

app.register(fastifySwagger, {
openapi: {
components: {
schemas: {
Model: {
type: "object",
properties: {
name: { type: "null" },
},
required: ['name']
}
}
}
},
})
.ready((err) => {
app.swagger();
.ready((err) => {
app.swagger();
})
app.register(fastifySwagger, {
})
.ready((err) => {
app.swagger();
})

@@ -183,0 +202,0 @@ expectType<OpenAPI.Document>(app.swagger())

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