You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, nil, fmt.Errorf("declares finding_type %q but violation is not a structured object", findingType)
784
+
// Policy declares a finding type but this violation is a plain string.
785
+
// This can happen when some evaluation branches do not support structured output yet.
786
+
// Fall back to treating it as a regular string violation without the typed finding.
787
+
if!warnedNoStructuredData {
788
+
warnings=append(warnings,
789
+
fmt.Sprintf("policy declares finding_type %q but some violations are plain strings — structured finding data will not be available for those", findingType))
0 commit comments