コード例 #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;
 }
コード例 #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));
 }
コード例 #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)
 {
 }