Beispiel #1
0
        public static void WithDocumentTags(this SwaggerGenOptions swaggerGenOptions,
                                            Action <DocumentTagsConfig> setupAction)
        {
            var options = new DocumentTagsConfig();

            setupAction.Invoke(options);

            swaggerGenOptions.DocumentFilter <DocumentTagsDocumentFilter>(options);
        }
Beispiel #2
0
        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;
 }