MCPcopy Create free account
hub / github.com/goadesign/goa / incompatibleAttributeType

Function incompatibleAttributeType

dsl/validation.go:457–460  ·  view source on GitHub ↗

incompatibleAttributeType reports an error for validations defined on incompatible attributes (e.g. max value on string).

(validation, actual, expected string)

Source from the content-addressed store, hash-verified

455// incompatibleAttributeType reports an error for validations defined on
456// incompatible attributes (e.g. max value on string).
457func incompatibleAttributeType(validation, actual, expected string) {
458 eval.ReportError("invalid %s validation definition: attribute must be %s (but type is %s)",
459 validation, expected, actual)
460}

Callers 9

FormatFunction · 0.85
PatternFunction · 0.85
ExclusiveMinimumFunction · 0.85
MinimumFunction · 0.85
ExclusiveMaximumFunction · 0.85
MaximumFunction · 0.85
MinLengthFunction · 0.85
MaxLengthFunction · 0.85
RequiredFunction · 0.85

Calls 1

ReportErrorFunction · 0.92

Tested by

no test coverage detected