private static void FilterDocument(OpenApiCompilerConfiguration documentFilters, OpenApiDocument document)
        {
            var documentFilterContext = new OpenApiDocumentFilterContext();

            foreach (var documentFilter in documentFilters.DocumentFilters)
            {
                documentFilter.Apply(document, documentFilterContext);
            }
        }
Example #2
0
        private void FilterDocument(IList <IOpenApiDocumentFilter> documentFilters, OpenApiDocument document, string documentRoute)
        {
            var documentFilterContext = new OpenApiDocumentFilterContext
            {
                DocumentRoute = documentRoute
            };

            foreach (var documentFilter in documentFilters)
            {
                documentFilter.Apply(document, documentFilterContext);
            }
        }