There is a class to represent a model:
public class Model{
public string Member { get; set; }}
There is a class which implements IOperationFilter:
public class Filter : IOperationFilter{
public void Apply(Operation operation, SchemaRegistry schemaRegistry,
ApiDescription apiDescription)
{
operation.responses["XXX"] = new Response
{
schema = schemaRegistry.GetOrRegister(typeof(Model[]))
}
}}
Pay attention that array of Models is used (Model[]).
As a result, a model schema is empty. If only Model is used than it's OK,
model is present.
What should I do to be able to use an array?
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.