Struct ContextValidationMessage
An immutable diagnostic message produced by Validate(int). Contains the severity, a human-readable description, and the name of the field that triggered the message.
Inherited Members
Namespace: Scylla.Input
Assembly: ScyllaInput.dll
Syntax
public readonly struct ContextValidationMessage
Constructors
ContextValidationMessage(ContextValidationSeverity, string, string)
Initializes a new ContextValidationMessage with the given severity, description text, and optional field name.
Declaration
public ContextValidationMessage(ContextValidationSeverity severity, string message, string fieldName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ContextValidationSeverity | severity | The classification of the validation finding. |
| string | message | The human-readable description of the issue. Should not be null or empty. |
| string | fieldName | The name of the field associated with the finding, for use in Inspector highlighting
or error reporting. Pass |
Fields
FieldName
The name of the serialized field that triggered this message (e.g., "ContextID",
"EnabledActionMaps"). May be null when the issue cannot be attributed to
a single field.
Declaration
public readonly string FieldName
Field Value
| Type | Description |
|---|---|
| string |
Message
The human-readable description of the validation finding. Includes context ID and index information so the message can be understood without additional lookup.
Declaration
public readonly string Message
Field Value
| Type | Description |
|---|---|
| string |
Severity
The severity of this validation result, indicating how the caller should treat the message.
Declaration
public readonly ContextValidationSeverity Severity
Field Value
| Type | Description |
|---|---|
| ContextValidationSeverity |