public SwaggerGenerator( IApiExplorer apiExplorer, JsonSerializerSettings jsonSerializerSettings, IDictionary <string, Info> apiVersions, SwaggerGeneratorOptions options = null) { _apiExplorer = apiExplorer; _jsonSerializerSettings = jsonSerializerSettings; _apiVersions = apiVersions; _options = options ?? new SwaggerGeneratorOptions(); }
public SchemaRegistry(JsonSerializerSettings jsonSerializerSettings, SwaggerGeneratorOptions options) { _jsonSerializerSettings = jsonSerializerSettings; _options = options; _contractResolver = jsonSerializerSettings.ContractResolver ?? new DefaultContractResolver { IgnoreIsSpecifiedMembers = options.IgnoreIsSpecifiedMembers }; _workItems = new Dictionary <Type, WorkItem>(); Definitions = new Dictionary <string, Schema>(); }