Share via


OpenApiDocumentParserOptions Class

Definition

Options for OpenAPI document parser.

public sealed class OpenApiDocumentParserOptions
type OpenApiDocumentParserOptions = class
Public NotInheritable Class OpenApiDocumentParserOptions
Inheritance
OpenApiDocumentParserOptions

Constructors

OpenApiDocumentParserOptions()

Properties

IgnoreNonCompliantErrors

Flag indicating whether to ignore non-compliant errors in the OpenAPI document during parsing. If set to true, the parser will not throw exceptions for non-compliant documents. Please note that enabling this option may result in incomplete or inaccurate parsing results.

OperationSelectionPredicate

Operation selection predicate to apply to all OpenAPI document operations. If set, the predicate will be applied to each operation in the document. If the predicate returns true, the operation will be parsed; otherwise, it will be skipped. This can be used to filter out operations that should not be imported for various reasons.

Applies to