Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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