public SwaggerGenerator(SwaggerSpecConfig config) { _config = config; _operationSpecGenerator = new OperationSpecGenerator( config.CustomTypeMappings, config.SubTypesLookup, config.OperationFilters, config.OperationSpecFilters); }
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); }