Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    SchemaValidationResult(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 Source

    Keyword

    Gets the JSON Schema keyword that failed validation (e.g., "type", "required", "minLength").

    Declaration
    public string? Keyword { get; }
    Property Value
    Type Description
    string
    View Source

    Message

    Gets the validation error message.

    Declaration
    public string Message { get; }
    Property Value
    Type Description
    string
    View Source

    Path

    Gets the JSON path to the invalid value (e.g., "$.items[0].name").

    Declaration
    public string? Path { get; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX