public AnnotatedResponse(SwaggerResponseAttribute attr, ISwaggerModelCatalog modelCatalog) { Description = attr.Message; StatusCode = (int)attr.Code; if (attr.Model != null) { Schema = SwaggerExtensions.GetSchema(modelCatalog, attr.Model); } }
public AnnotatedResponse(SwaggerResponseAttribute attr, ISwaggerModelCatalog modelCatalog) { Description = attr.Message; StatusCode = (int)attr.Code; if (attr.Model != null) { Schema = SwaggerExtensions.GetSchema(modelCatalog, attr.Model); } }