NewValidationIssue creates a validation issue with manual field setting
(issueType ValidationIssueType, path, message string, severity ValidationIssueSeverity, reference string)
| 92 | |
| 93 | // NewValidationIssue creates a validation issue with manual field setting |
| 94 | func 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 |
| 105 | func NewValidationIssueFromError(issueType ValidationIssueType, path string, err error, reference string) ValidationIssue { |
no outgoing calls
searching dependent graphs…