Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom MetaData not reflecting in the express integration. #1623

Open
NinadJoshi222 opened this issue May 6, 2024 · 3 comments
Open

Custom MetaData not reflecting in the express integration. #1623

NinadJoshi222 opened this issue May 6, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@NinadJoshi222
Copy link

NinadJoshi222 commented May 6, 2024

What happens?

On adding the title and description and the other fields in the metaData section in the express integration, there is no changes taking place.

What did you expect to happen?

Expected title of the webpage to update as per the provided custom title.

Custom Title expected to be "My Custom Title" but stays as API Reference

image

How can we reproduce the issue?

While configuring the apiReference add the metaData field as a key and the required parameters inside it as shown below:

Code:-
app.use(
    "/api-docs",
    apiReference({
        layout: "modern",
        theme: "default",
        spec:{
            content:apiData,
        },
        metaData: {
          title: 'My Custom Title',
          description: 'My page page',
      },
    })
);
@NinadJoshi222 NinadJoshi222 added the bug Something isn't working label May 6, 2024
@hanspagel
Copy link
Member

Thanks for reporting!

Relevant #709

@foxted
Copy link

foxted commented May 10, 2024

Same issue for the Nest.js integration.

@fellipeutaka
Copy link

Same here for the Fastify integration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants