createSchema should warn about unknown/inactive attributes and types #6

Open
oferei opened this Issue Oct 17, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Owner

oferei commented Oct 17, 2012

A few examples:

  • attribute with unknown name (ignored completely)
  • type with unknown name (treated as 'any')
  • properties attribute when type is not 'object'
  • additionalItems attribute when items attribute is not an array (tuple typing)

Although this is all "by the book" it may lead to bugs, such as uncaught errors in runtime.
Not sure about the API, but perhaps there should be some (opt-in) 'strict' option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment