class Lutaml::Model::Choice
def validate_content!(object)
def validate_content!(object) validated_attributes = [] valid = valid_attributes(object, validated_attributes) raise Lutaml::Model::ChoiceUpperBoundError.new(validated_attributes, @max) if valid.count > @max raise Lutaml::Model::ChoiceLowerBoundError.new(validated_attributes, @min) if valid.count < @min end