fastify / fastify-swagger

Swagger documentation generator for Fastify
MIT License
910 stars 200 forks source link

fix: Use openapi-types 3.1 document type to support null schema types #707

Closed nidhi-kala closed 1 year ago

nidhi-kala commented 1 year ago

Fixes https://github.com/fastify/fastify-swagger/issues/705

Type '"null"' is not assignable to type 'NonArraySchemaObjectType | undefined'.

By using OpenAPIV3_1.Document instead of OpenAPIV3.Document as type for Fastify dynamic swagger options, openapi config.

Checklist