Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active August 20, 2017 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/a596ef4da31c903ad46ffbdbd9ef1627 to your computer and use it in GitHub Desktop.
Save justinyoo/a596ef4da31c903ad46ffbdbd9ef1627 to your computer and use it in GitHub Desktop.
Swashbuckle Pro Tips for ASP.NET Web API #3
public static class SwaggerConfig
{
public static void Register(HttpConfiguration config)
{
config
.EnableSwagger(c =>
{
...
c.SchemaFilter(() => new Requests(typeof(ValueRequestModel)));
c.SchemaFilter(() => new Responses(typeof(ValueResponseModel)));
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment