Skip to content

Commit ec1a043

Browse files
switched to warning instead of error for primitive types having complex data type field
1 parent c369836 commit ec1a043

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dialect/agentforce/src/lint/passes/complex-data-type.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ class ComplexDataTypePass implements LintPass {
129129
obj,
130130
lintDiagnostic(
131131
getDeclRange(obj),
132-
`Action ${kind} '${paramName}' in '${actionName}' has primitive type '${typeText}' and must not specify 'complex_data_type_name'. Only 'object' and 'list[object]' types support 'complex_data_type_name'.`,
133-
DiagnosticSeverity.Error,
132+
`Action ${kind} '${paramName}' in '${actionName}' has primitive type '${typeText}' and does not require 'complex_data_type_name'. Only 'object' and 'list[object]' types require 'complex_data_type_name'.`,
133+
DiagnosticSeverity.Warning,
134134
'complex-data-type-on-primitive'
135135
)
136136
);

0 commit comments

Comments
 (0)