Skip to content

[C#] Missing XML comment for IValidatableObject.Validate generated method #5195

@StefanoRaggi

Description

@StefanoRaggi
Description

The C# generator is not generating XML comments for the IValidatableObject.Validate methods in the model classes, causing many build warnings:

public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
{ 
    yield break;
}
warning CS1591: Missing XML comment for publicly visible type or member 'ClassName.Validate(ValidationContext)'
Swagger-codegen version

v. 2.2.2

Swagger declaration file content or url

https://raw.githubusercontent.com/oanda/v20-openapi/master/json/v20.json

Command line used for generation
java -jar ./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i modules/swagger-codegen/src/test/resources/2_0/v20.json -l csharp -o samples/client/oandav20/csharp/Oanda.RestV20 -DpackageName=Oanda.RestV20

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions