public static void WithDocumentTags(this SwaggerGenOptions swaggerGenOptions, Action <DocumentTagsConfig> setupAction) { var options = new DocumentTagsConfig(); setupAction.Invoke(options); swaggerGenOptions.DocumentFilter <DocumentTagsDocumentFilter>(options); }
public static void WithDocumentTags(this SwaggerGenOptions swaggerGenOptions, IEnumerable <OpenApiTag> tags) { var options = new DocumentTagsConfig { Tags = tags }; swaggerGenOptions.DocumentFilter <DocumentTagsDocumentFilter>(options); }
public DocumentTagsDocumentFilter(DocumentTagsConfig config) { _config = config; }