public AnnotatedResponse(SwaggerResponseAttribute attr, ISwaggerModelCatalog modelCatalog) { Description = attr.Message; StatusCode = (int) attr.Code; if (attr.Model != null) { Schema = modelCatalog.GetModelForType(attr.Model)?.GetSchema(); } }
private AnnotatedResponse CreateSwaggerResponseObject(SwaggerResponseAttribute attr) { return new AnnotatedResponse(attr, _modelCatalog); }