fixes missing value in optional enum should be valid
revert required check in enum validator
fixes extends with $ref should not remove other attributes when resolving $ref
add more tests for extends with uri string
Merge pull request #37 from hypercharge/master

extends having a $ref to schema uri removed other sibling attributes