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

Filters should detect and produce errors for all annotations instead of just the first encountered

Open scott-lin opened this issue 6 years ago • 0 comments

Our filters should detect and report all issues instead of just the first. This will help customers save time by avoiding peeling the onion.

For example, when the following annotations are present, only the first produces an error.

/// <response code="200"></response>
/// <response code="400"></response>

Generation errors that result from this:

ExceptionType: MissingResponseDescriptionException || Message: Description is missing for response code: "200".

Expected:

ExceptionType: MissingResponseDescriptionException || Message: Description is missing for response code: "200".
ExceptionType: MissingResponseDescriptionException || Message: Description is missing for response code: "400".

scott-lin avatar Apr 06 '18 22:04 scott-lin