ShogunPanda / fastify-openapi-docs

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

Option to add operationId #11

Closed vincent-vade closed 1 year ago

vincent-vade commented 1 year ago

Hi,

First the package work pretty well. I would like to know if it's possible to add operationId inside the context of an handler ?

like:

{
  schema: {
    ...otherSchema
  },
  config: {
    hideHead: true,
    openapi: {
      operationId: "getUserById",
    },
  },
}

Because as i try the operationId is omit from the final openapi result.

Best regards

Vincent

vincent-vade commented 1 year ago

Ok i find it in local... I'll create a new PR

ShogunPanda commented 1 year ago

Amazing. Thanks! For the time being, I'm closing this.