question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DocumentTitle is missing in SwaggerUIOptions

See original GitHub issue

Hi,

I’ve got Swashbuckle.AspNetCore 1.0.0 nuget package installed in my Asp.Net Core project. But when I try to add DocumentTitle() in UseSwaggerUI middleware it seems to be not there.

// Enable middleware to serve swagger-ui (HTML, JS, CSS etc.), specifying the Swagger JSON endpoint.
            app.UseSwaggerUI(c =>
            {
                c.DocumentTitle("Custom API - Swagger UI");
            });

However I noticed it’s there in github repository: https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/98f64b09032c2949e669c319b5cf09ff0f4e2340/test/WebSites/CustomUIConfig/Startup.cs

Am I missing something?

Thanks in advance.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jussikcommented, Jul 10, 2017

Looks like it was merged in 98f64b09032c2949e669c319b5cf09ff0f4e2340 a little over a month ago, just not on nuget yet. Any ETA?

2reactions
jcmrvacommented, Jul 28, 2017

This is probably my #1 missing feature since I first encountered Swagger. Still waiting…

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASP.NET Core - Swashbuckle not creating swagger.json file
Hopefully this helps someone else. I was using a custom document title and was not changing the folder path in the SwaggerEndPoint to...
Read more >
Swagger UI Configuration
Configuration. How to configure. Swagger UI accepts configuration parameters in four locations. From lowest to highest precedence: The swagger-config.yaml ...
Read more >
Configuring and Using Swagger UI in ASP.NET Core Web ...
We are going to learn how to integrate the Swagger UI/OpenAPI in an ASP.NET Core Web API, extend the documentation, and customize UI....
Read more >
Get started with Swashbuckle and ASP.NET Core
Navigate to the directory in which the .csproj file exists ... warning CS1591: Missing XML comment for publicly visible type or member ...
Read more >
Swashbuckle.AspNetCore
Custom routes MUST include the {documentName} parameter. ... <response code="404">Product not found</response> /// <response code="500">Oops!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found