OpenAPI.NET.CSharpAnnotations icon indicating copy to clipboard operation
OpenAPI.NET.CSharpAnnotations copied to clipboard

Inconsistent errors during generation

Open epet opened this issue 7 years ago • 0 comments

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".

epet avatar Aug 06 '18 19:08 epet