ShogunPanda / fastify-openapi-docs

A simple plugin for Fastify that generates OpenAPI spec automatically.
ISC License
27 stars 5 forks source link

config does not exist in type FastifySchema #4

Closed sittingbool closed 2 years ago

sittingbool commented 2 years ago

Setting up the example in typescript I am getting the following error: TS2322: Type '{ config: {}; body: { $ref: string; }; }' is not assignable to type 'FastifySchema'.   Object literal may only specify known properties, and 'config' does not exist in type 'FastifySchema'.

sittingbool commented 2 years ago

Found it. Need to put this one level up, not in schema but next to it. Sorry

ShogunPanda commented 2 years ago

No worries, glad you solved it!