0

I am using CSharpClientGenerator to generate client from json schema. Unfortunately, the methods in the client are named the same (ReadAsync(), ListAsync() etc...).

public NSwagGenerator(
        Client config)
    {
        this.config = config;

        httpClient = new HttpClient();

        settings = new CSharpClientGeneratorSettings
        {
            ClassName = $"{{controller}}{config.ClassName}",
            CSharpGeneratorSettings =
            {
                Namespace = config.NameSpaceName,
                DateTimeType = "System.DateTime",
                RequiredPropertiesMustBeDefined = false,
            },
            GenerateClientInterfaces = true,
            UseRequestAndResponseSerializationSettings=true,
        };
    }

Can I use CSharpClientGeneratorSettings to set name creation in the generated client?

0 Answers0