Versions in this module Expand all Collapse all v1 v1.0.0 May 1, 2024 Changes in this version + const HowToFixDecodingError + const HowToFixInvalidContentType + const HowToFixInvalidEncoding + const HowToFixInvalidJSON + const HowToFixInvalidResponseCode + const HowToFixInvalidSchema + const HowToFixMissingValue + const HowToFixParamInvalidBoolean + const HowToFixParamInvalidDeepObjectMultipleValues + const HowToFixParamInvalidEnum + const HowToFixParamInvalidFormEncode + const HowToFixParamInvalidNumber + const HowToFixParamInvalidPipeDelimitedObjectExplode + const HowToFixParamInvalidSpaceDelimitedObjectExplode + const HowToFixParamInvalidString + const HowToFixPath + const HowToFixPathMethod + const HowToFixReservedValues + func PopulateValidationErrors(validationErrors []*ValidationError, request *http.Request, path string) + type SchemaValidationFailure struct + AbsoluteLocation string + Column int + DeepLocation string + Line int + Location string + OriginalError *jsonschema.ValidationError + Reason string + ReferenceExample string + ReferenceObject string + ReferenceSchema string + func (s *SchemaValidationFailure) Error() string + type ValidationError struct + Context interface{} + HowToFix string + Message string + Reason string + RequestMethod string + RequestPath string + SchemaValidationErrors []*SchemaValidationFailure + SpecCol int + SpecLine int + SpecPath string + ValidationSubType string + ValidationType string + func HeaderParameterCannotBeDecoded(param *v3.Parameter, val string) *ValidationError + func HeaderParameterMissing(param *v3.Parameter) *ValidationError + func IncorrectCookieParamArrayBoolean(param *v3.Parameter, item string, sch *base.Schema, itemsSchema *base.Schema) *ValidationError + func IncorrectCookieParamArrayNumber(param *v3.Parameter, item string, sch *base.Schema, itemsSchema *base.Schema) *ValidationError + func IncorrectCookieParamBool(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func IncorrectCookieParamEnum(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func IncorrectFormEncoding(param *v3.Parameter, qp *helpers.QueryParam, i int) *ValidationError + func IncorrectHeaderParamArrayBoolean(param *v3.Parameter, item string, sch *base.Schema, itemsSchema *base.Schema) *ValidationError + func IncorrectHeaderParamArrayNumber(param *v3.Parameter, item string, sch *base.Schema, itemsSchema *base.Schema) *ValidationError + func IncorrectHeaderParamBool(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func IncorrectHeaderParamEnum(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func IncorrectParamEncodingJSON(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func IncorrectPathParamArrayBoolean(param *v3.Parameter, item string, sch *base.Schema, itemsSchema *base.Schema) *ValidationError + func IncorrectPathParamArrayNumber(param *v3.Parameter, item string, sch *base.Schema, itemsSchema *base.Schema) *ValidationError + func IncorrectPathParamBool(param *v3.Parameter, item string, sch *base.Schema) *ValidationError + func IncorrectPathParamEnum(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func IncorrectPathParamNumber(param *v3.Parameter, item string, sch *base.Schema) *ValidationError + func IncorrectPipeDelimiting(param *v3.Parameter, qp *helpers.QueryParam) *ValidationError + func IncorrectQueryParamArrayBoolean(param *v3.Parameter, item string, sch *base.Schema, itemsSchema *base.Schema) *ValidationError + func IncorrectQueryParamArrayNumber(param *v3.Parameter, item string, sch *base.Schema, itemsSchema *base.Schema) *ValidationError + func IncorrectQueryParamBool(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func IncorrectQueryParamEnum(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func IncorrectQueryParamEnumArray(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func IncorrectReservedValues(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func IncorrectSpaceDelimiting(param *v3.Parameter, qp *helpers.QueryParam) *ValidationError + func InvalidCookieParamNumber(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func InvalidDeepObject(param *v3.Parameter, qp *helpers.QueryParam) *ValidationError + func InvalidHeaderParamNumber(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func InvalidQueryParamNumber(param *v3.Parameter, ef string, sch *base.Schema) *ValidationError + func OperationNotFound(pathItem *v3.PathItem, request *http.Request, method string, specPath string) *ValidationError + func QueryParameterMissing(param *v3.Parameter) *ValidationError + func RequestContentTypeNotFound(op *v3.Operation, request *http.Request, specPath string) *ValidationError + func ResponseCodeNotFound(op *v3.Operation, request *http.Request, code int) *ValidationError + func ResponseContentTypeNotFound(op *v3.Operation, request *http.Request, response *http.Response, code string, ...) *ValidationError + func (v *ValidationError) Error() string + func (v *ValidationError) IsPathMissingError() bool