Пример #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)
 {
 }