/// <summary> /// /// </summary> public IValidate Build(IDictionary <string, OpenApiMediaType> content) { IValidate validator = new ValidatorRule <HttpRequest, IDictionary <string, OpenApiMediaType> >(_validatorContext, content); //OpenApiBodyValidator return(validator); }
public virtual Object Clone() { var that = new ValidatorRule <TData, TElement>(this._context, this._openApiElement); this.Copy(that); return(that); //throw new NotImplementedException($"Clone is not implimented for Element {RequestElementName} & Rule {RuleName}"); }
/// <summary> /// /// </summary> public IValidate Build(OpenApiPaths paths) { IValidate validator = new ValidatorRule <HttpRequest, OpenApiPaths>(_validatorContext, paths); return(validator); }
/// <summary> /// /// </summary> public IValidate Build(OpenApiDocument doc) { IValidate validator = new ValidatorRule <HttpRequest, OpenApiDocument>(_validatorContext, doc); return(validator); }
/// <summary> /// /// </summary> /// <param name="encodings"></param> public IValidate Build(IDictionary <string, OpenApiEncoding> encodings) { IValidate validator = new ValidatorRule <HttpRequest, IDictionary <string, OpenApiEncoding> >(_validatorContext, encodings); return(validator); }