Skip to content

Allow adding 'config' on the routes added by Swagger-UI #218

Open
@p-bakker

Description

@p-bakker

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

I want to be able to add stuff to the Fastify route config object for the routes added by the swagger-ui plugin, so I can access the config in request.routeOptions.config

Because this isn't currently possible, I'm resorting to registering an 'onRoute' hook before registering the swagger(-ui) plugins, but this hook then remains and as Fastify doesn't allow removing hooks

Motivation

No response

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions