/// <summary> /// Creates an instance of <see cref="OpenApiDocumentGenerationSettings"/>. /// </summary> /// <param name="schemaGenerationSettings">The schema generation settings.</param> /// <param name="removeRoslynDuplicateStringFromParamName">Indicates whether to remove duplicate string from /// parameter name to work around roslyn issue.</param> public OpenApiDocumentGenerationSettings( SchemaGenerationSettings schemaGenerationSettings, bool removeRoslynDuplicateStringFromParamName) { this.SchemaGenerationSettings = schemaGenerationSettings ?? throw new ArgumentNullException(nameof(schemaGenerationSettings)); this.RemoveRoslynDuplicateStringFromParamName = removeRoslynDuplicateStringFromParamName; }
/// <summary> /// Creates an instance of <see cref="OpenApiDocumentGenerationSettings"/>. /// </summary> /// <param name="schemaGenerationSettings">The schema generation settings.</param> public OpenApiDocumentGenerationSettings(SchemaGenerationSettings schemaGenerationSettings) { this.SchemaGenerationSettings = schemaGenerationSettings ?? throw new ArgumentNullException(nameof(schemaGenerationSettings)); }
/// <summary> /// Creates an instance of <see cref="OpenApiDocumentGenerationSettings"/>. /// </summary> /// <param name="schemaGenerationSettings">The schema generation settings.</param> public OpenApiDocumentGenerationSettings(SchemaGenerationSettings schemaGenerationSettings) : this(schemaGenerationSettings, false) { }