Class SchemaValidationResult
Represents a validation error from JSON Schema validation.
Inheritance
object
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public sealed class SchemaValidationResult
Constructors
View SourceSchemaValidationResult(string, string?, string?)
Initializes a new instance of the SchemaValidationResult class.
Declaration
public SchemaValidationResult(string message, string? path = null, string? keyword = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The validation error message. |
| string | path | The JSON path to the invalid value. |
| string | keyword | The JSON Schema keyword that failed validation. |
Properties
View SourceKeyword
Gets the JSON Schema keyword that failed validation (e.g., "type", "required", "minLength").
Declaration
public string? Keyword { get; }
Property Value
| Type | Description |
|---|---|
| string |
Message
Gets the validation error message.
Declaration
public string Message { get; }
Property Value
| Type | Description |
|---|---|
| string |
Path
Gets the JSON path to the invalid value (e.g., "$.items[0].name").
Declaration
public string? Path { get; }
Property Value
| Type | Description |
|---|---|
| string |