bpdusk / jsonschema

Automatically exported from code.google.com/p/jsonschema
0 stars 0 forks source link

Type "object" allows arrays #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

JSONSchema.validate([1], {"type":"object"}).valid

What is the expected output? What do you see instead?

Expected output is false but instead true is returned.

What version of the product are you using? On what operating system?

jsonschema-b4.js

Original issue reported on code.google.com by george.s...@gmail.com on 25 Jul 2010 at 2:15