/// <summary>Initializes a new instance of the <see cref="CSharpControllerGenerator" /> class.</summary>
 /// <param name="document">The Swagger document.</param>
 /// <param name="settings">The settings.</param>
 /// <param name="resolver">The resolver.</param>
 /// <exception cref="ArgumentNullException"><paramref name="document" /> is <see langword="null" />.</exception>
 public CSharpRefitGenerator(OpenApiDocument document, CSharpRefitGeneratorSettings settings,
                             CSharpTypeResolver resolver)
     : base(document, settings, resolver)
 {
     _document = document ?? throw new ArgumentNullException(nameof(document));
     Settings  = settings ?? throw new ArgumentNullException(nameof(settings));
 }
 /// <summary>Initializes a new instance of the <see cref="CSharpControllerGenerator" /> class.</summary>
 /// <param name="document">The Swagger document.</param>
 /// <param name="settings">The settings.</param>
 /// <exception cref="ArgumentNullException"><paramref name="document" /> is <see langword="null" />.</exception>
 public CSharpRefitGenerator(OpenApiDocument document, CSharpRefitGeneratorSettings settings)
     : this(document, settings, CreateRefitResolverWithExceptionSchema(settings.CSharpGeneratorSettings, document))
 {
 }