public SchemaGenerator(IApiModelResolver apiModelResolver, SchemaGeneratorOptions options) { _apiModelResolver = apiModelResolver; _options = options; _chainOfHandlers = new FileTypeHandler(options, this) .Add(new PolymorphicTypeHandler(options, this)) .Add(new ApiPrimitiveHandler(options, this)) .Add(new ApiDictionaryHandler(options, this)) .Add(new ApiArrayHandler(options, this)) .Add(new ApiObjectHandler(options, this)) .Add(new FallbackHandler(options, this)); }
public AnnotationsSchemaFilterTests() { _apiModelResolver = new NewtonsoftApiModelResolver(new JsonSerializerSettings(), new SchemaGeneratorOptions()); }
public AnnotationsSchemaFilterTests() { _apiModelResolver = new JsonApiModelResolver(new JsonSerializerOptions()); }
public XmlCommentsSchemaFilterTests() { _apiModelResolver = new JsonApiModelResolver(new JsonSerializerOptions()); }
public SchemaGenerator(IApiModelResolver apiModelResolver, IOptions <SchemaGeneratorOptions> optionsAccessor) : this( apiModelResolver, optionsAccessor.Value ?? new SchemaGeneratorOptions()) { }