Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates an instance of <see cref="OpenApiDocumentGenerationSettings"/>.
 /// </summary>
 /// <param name="schemaGenerationSettings">The schema generation settings.</param>
 public OpenApiDocumentGenerationSettings(SchemaGenerationSettings schemaGenerationSettings)
     : this(schemaGenerationSettings, false)
 {
 }