You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the bug has not already been reported
Fastify version
Plugin version
No response
Node.js version
18.12.1
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
13.0
Description
I get type error when passing a JSON schema to register option openapi.components.schema. (I create the json schema using Typebox)
fastify-swagger is using openapi-types for TS type. But we(fastify-swagger) don't have their change that they've made for OpenApi 3.1 kogosoftwarellc/open-api#757 and now they have OpenAPIV3_1.Document.
benevbright
changed the title
Type error on passing JSON schema to swagger.openapi.components.schema
Type error on passing JSON schema to openapi.components.schema
Jan 12, 2023
Prerequisites
Fastify version
Plugin version
No response
Node.js version
18.12.1
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
13.0
Description
I get type error when passing a JSON schema to register option
openapi.components.schema
. (I create the json schema using Typebox)fastify-swagger is using openapi-types for TS type. But we(fastify-swagger) don't have their change that they've made for OpenApi 3.1 kogosoftwarellc/open-api#757 and now they have
OpenAPIV3_1.Document
.So we would need to apply this to here
fastify-swagger/index.d.ts
Line 116 in 49f1642
Steps to Reproduce
Try this on TS playground
Also, it's reproducible when passing this object to
openapi.components.schema
option onfastify.register
.Expected Behavior
No response
The text was updated successfully, but these errors were encountered: