Sha256: 2819d024ca3ef0fd61f03c28d8885b8902dbf16669e28e0edfe2431c1ebe7206

Contents?: true

Size: 702 Bytes

Versions: 6

Compression:

Stored size: 702 Bytes

Contents

[
    {
        "name": "adult_age",
        "rules": ["positive_integer", {"min_number": 18}]
    },

    {
        "name": "adult_age_with_custom_error",
        "rules": ["positive_integer", {"min_number": 18}],
        "error": "WRONG_AGE"
    },

    {
        "name": "user",
        "rules": { "nested_object":{
            "name": "required",
            "age1": "adult_age",
            "age2": "adult_age_with_custom_error"
        }}
    },

    {
        "name": "user_with_custom_error",
        "rules": { "nested_object":{
            "name": "required",
            "age1": "adult_age",
            "age2": "adult_age_with_custom_error"
        }},
        "error": "WRONG_USER"
    }
]

Version data entries

6 entries across 3 versions & 3 rubygems

Version Path
ruby-livr-2.0.0 spec/test_suite/aliases_negative/03-adult_age_in_user/aliases.json
ruby-livr-2.0.0 spec/test_suite/aliases_positive/03-adult_age_in_user/aliases.json
livr2-2.0.0 spec/test_suite/aliases_negative/03-adult_age_in_user/aliases.json
livr2-2.0.0 spec/test_suite/aliases_positive/03-adult_age_in_user/aliases.json
livr-0.0.2 test/test_suite/aliases_negative/03-adult_age_in_user/aliases.json
livr-0.0.2 test/test_suite/aliases_positive/03-adult_age_in_user/aliases.json