/* Code generated by Azure.Iot.Operations.ProtocolCompilerLib v1.0.0.0; DO NOT EDIT. */

#nullable enable

using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Azure.Iot.Operations.Services.EdgeRegistry.Host.Generated.Common;

namespace Azure.Iot.Operations.Services.EdgeRegistry.Host.Generated
{
    /// <summary>
    /// Indicates whether validation was performed, and if not, the reason why not (e.g., "unsupported format", "validation disabled").
    /// </summary>
    [System.CodeDom.Compiler.GeneratedCode("Azure.Iot.Operations.ProtocolCompilerLib", "1.0.0.0")]
    public partial class ValidationStatus
    {
        /// <summary>
        /// True if validation was performed and the entity adheres to the rules; false if validation was not performed.
        /// </summary>
        [JsonPropertyName("validated")]
        [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
        [JsonRequired]
        public bool Validated { get; set; } = default!;

        /// <summary>
        /// If validation was not performed, the reason why not. MUST be present if validated is false. MUST NOT be present if validated is true.
        /// </summary>
        [JsonPropertyName("reason")]
        [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
        public string? Reason { get; set; } = default;

    }
}
