netmail-open / wjelement

advanced, flexible JSON manipulation in C
GNU Lesser General Public License v3.0
108 stars 56 forks source link

Inconsistency: on a mismatch in type array error cb may be called or not #78

Open RelayrMA opened 5 years ago

RelayrMA commented 5 years ago

If I validate

1

against

{
    "type": [
        {
            "type": "string"
        },
        "integer"
    ]
}

My error callback gets called upon the string mismatch. However if I validate against

{
    "type": [
        "string",
        "integer"
    ]
}

it is not called.