Class PropertyValidationError
Represents a validation error for a content property.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.ContentEditing.Validation
Assembly: Umbraco.Core.dll
Syntax
public class PropertyValidationError
Constructors
View SourcePropertyValidationError()
Declaration
public PropertyValidationError()
Properties
View SourceAlias
Gets or sets the property type alias of the property that failed validation.
Declaration
public required string Alias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Culture
Gets or sets the culture code for the property value that failed validation, or null for invariant properties.
Declaration
public required string? Culture { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ErrorMessages
Gets the collection of error messages describing the validation failures.
Declaration
public required string[] ErrorMessages { get; init; }
Property Value
| Type | Description |
|---|---|
| string[] |
JsonPath
Gets the JSON path to the property value that failed validation.
Declaration
public required string JsonPath { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Segment
Gets or sets the segment identifier for the property value that failed validation, or null for non-segmented properties.
Declaration
public required string? Segment { get; set; }
Property Value
| Type | Description |
|---|---|
| string |