internal override void Validate()

in src/Analyzer.JsonRuleEngine/Schemas/AllOfExpressionDefinition.cs [42:55]


        internal override void Validate()
        {
            if (!(this.AllOf?.Count() > 0))
            {
                throw new JsonException("No expressions were specified in the allOf expression");
            }

            int nullCount = this.AllOf.Count(e => e == null);

            if (nullCount > 0)
            {
                throw new JsonException($"Null expressions are not valid. {nullCount} expressions are null in allOf expression");
            }
        }