OpenAPI.NET.CSharpAnnotations
OpenAPI.NET.CSharpAnnotations copied to clipboard
Inconsistent errors during generation
This api processes without error:
/// <summary>
/// Summary 1.
/// </summary>
/// <verb>GET</verb>
/// <url>http://localhost/api/api1</url>
/// <param name="getArgs">Description, foo.</param>
/// <header name="Authorization" type="string">Auth header.</header>
/// <returns>"foo".</returns>
public string Api1(string getArgs )
{
return "foo";
}
This api complains about "in attribute is missing from parameters"
/// <summary>
/// Summary 2.
/// </summary>
/// <verb>GET</verb>
/// <url>http://localhost/api/api2</url>
/// <param name="getArgs">Description, bar.</param>
/// <returns>"bar".</returns>
public string Api2(string getArgs )
{
return "bar";
}
I would expect both to have the same generation error of "in attribute is missing from parameters".