コード例 #1
0
        public static SwaggerDocsConfig UseMiruken(
            this SwaggerDocsConfig config,
            Action <SwaggerMediatesFilter> configure = null)
        {
            var documentFilter = new SwaggerMediatesFilter();

            configure?.Invoke(documentFilter);
            config.SchemaId(SwaggerMediatesFilter.ModelToSchemaId);
            config.DocumentFilter(() => documentFilter);
            config.IncludeApiComments("Miruken.Mediate");
            return(config);
        }