Sha256: e2f387e0cc4b51ef60b026ce0d28e48f6b4a71922a8bdfc4317ab5b8cc506a8a

Contents?: true

Size: 661 Bytes

Versions: 2

Compression:

Stored size: 661 Bytes

Contents

{
    "id1-1": { "or": ["email", "positive_integer" ] },
    "id2-1": [{ "or": ["email", "positive_integer" ] }, "to_lc"],
    "id3-1": { "or": [{"min_length": 15}, ["email", "to_lc"] ] },

    "products": {"list_of": { "or": [
        {"nested_object": {
            "product_type": ["required", {"eq": "material"}],
            "material_id": ["required", "positive_integer"],
            "quantity": ["required", {"min_number": 1} ],
            "warehouse_id": "positive_integer"
        }},

        {"nested_object": {
            "product_type": ["required", {"eq": "service"}],
            "name": ["required", {"max_length": 20} ]
        }}
    ]}}
}

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
ruby-livr-2.0.0 spec/test_suite/negative/29-or/rules.json
livr2-2.0.0 spec/test_suite/negative/29-or/rules.json