MCPcopy Index your code
hub / github.com/modelcontextprotocol/registry / NewValidationIssue

Function NewValidationIssue

internal/validators/validation_types.go:94–102  ·  view source on GitHub ↗

NewValidationIssue creates a validation issue with manual field setting

(issueType ValidationIssueType, path, message string, severity ValidationIssueSeverity, reference string)

Source from the content-addressed store, hash-verified

92
93// NewValidationIssue creates a validation issue with manual field setting
94func NewValidationIssue(issueType ValidationIssueType, path, message string, severity ValidationIssueSeverity, reference string) ValidationIssue {
95 return ValidationIssue{
96 Type: issueType,
97 Path: path,
98 Message: message,
99 Severity: severity,
100 Reference: reference,
101 }
102}
103
104// NewValidationIssueFromError creates a validation issue from an existing error
105func NewValidationIssueFromError(issueType ValidationIssueType, path string, err error, reference string) ValidationIssue {

Callers 8

TestNewValidationIssueFunction · 0.92
validateServerJSONSchemaFunction · 0.85
addDetailedErrorsFunction · 0.85
validateWebsiteURLFunction · 0.85
validatePackageTransportFunction · 0.85
validateRemoteTransportFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestNewValidationIssueFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…