matryer / silk

Markdown based document-driven RESTful API testing.
http://silktest.org/
GNU General Public License v2.0
942 stars 69 forks source link

remove unnecessary validation #48

Open ivancevich opened 6 years ago

ivancevich commented 6 years ago

Hi @matryer I've found out that the following JSON schema never gets successfully matched.

{
    "name": "JC",
    "foo": {
        "bar": null,
        "baz": "qux"
    }
}

I've removed a condition which seems to be the problem, and also seems useless, since the first condition after recursion takes care of nil values. Let me know what you think. Thanks!