OpenApiValidator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Class containing dispatchers to execute validation rules on for Open API document.
public class OpenApiValidator : Microsoft.OpenApi.Services.OpenApiVisitorBase, Microsoft.OpenApi.Validations.IValidationContext
type OpenApiValidator = class
inherit OpenApiVisitorBase
interface IValidationContext
Public Class OpenApiValidator
Inherits OpenApiVisitorBase
Implements IValidationContext
- Inheritance
- Implements
Constructors
OpenApiValidator(ValidationRuleSet) |
Create a visitor that will validate an OpenAPIDocument |
Properties
CurrentKeys |
Properties available to identify context of where an object is within OpenAPI Document (Inherited from OpenApiVisitorBase) |
Errors |
Gets the validation errors. |
PathString |
Pointer to source of validation error in document (Inherited from OpenApiVisitorBase) |
Warnings |
Gets the validation warnings. |
Methods
Extension Methods
CreateError(IValidationContext, String, String) |
Helper method to simplify validation rules |
CreateWarning(IValidationContext, String, String) |
Helper method to simplify validation rules |