<commit_before>﻿namespace Gigobyte.Mockaroo.Fields
{
    public partial class JSONArrayField
    {
        public int Min { get; set; } = 1;

        public int Max { get; set; } = 5;

        public override string ToJson()
        {
            return $"{base.BaseJson()},\"minItems\":{Min},\"maxItems\":{Max}}}";
        }
    }
}<commit_msg>Add limiter to JsonArrayField min and max properties<commit_after>﻿namespace Gigobyte.Mockaroo.Fields
{
    public partial class JSONArrayField
    {
        public int Min
        {
            get { return _min; }
            set { _min = value.Between(0, 100); }
        }

        public int Max
        {
            get { return _max; }
            set { _max = value.Between(0, 100); }
        }

        public override string ToJson()
        {
            return $"{base.BaseJson()},\"minItems\":{Min},\"maxItems\":{Max}}}";
        }

        #region Private Members

        private int _min = 1, _max = 5;

        #endregion Private Members
    }
}
{'fraction_non_alphanumeric': 0.12512413108242304, 'fraction_numerical': 0.011916583912611719, 'mean_word_length': 1.7768595041322315, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6428041', 'n_tokens_mistral': 314, 'n_tokens_neox': 292, 'n_words': 75}