예제 #1
0
 public SwaggerGenerator(SwaggerSpecConfig config)
 {
     _config = config;
     _operationSpecGenerator = new OperationSpecGenerator(
         config.CustomTypeMappings,
         config.SubTypesLookup,
         config.OperationFilters,
         config.OperationSpecFilters);
 }
예제 #2
0
 public SwaggerGenerator(SwaggerSpecConfig config)
 {
     _config = config;
     _operationSpecGenerator = new OperationSpecGenerator(
         config.CustomTypeMappings,
         config.SubTypesLookup,
         config.OperationFilters,
         config.OperationSpecFilters);
 }
예제 #3
0
        public SwaggerGenerator(
            Func<ApiDescription, string> declarationKeySelector,
            Func<string> basePathResolver,
            IDictionary<Type, ModelSpec> customTypeMappings,
            IEnumerable<IOperationFilter> operationFilters,
            IEnumerable<IOperationSpecFilter> operationSpecFilters)
        {
            _declarationKeySelector = declarationKeySelector;
            _basePathResolver = basePathResolver;

            _operationSpecGenerator = new OperationSpecGenerator(customTypeMappings, operationFilters, operationSpecFilters);
        }