While trying to test a AnyOf within an array which was in an object we hit an issue with the filtering for readonly and writeonly that caused an exception to be thrown. However this exception was suppressed because spectator only throws certain types of exceptions.
So this PR fixes:
The original AnyOf issue
Enabling an exception to bubble up if it has come from an internal error within Spectator
A test that was failing now that we are bubbling up the error.
While trying to test a AnyOf within an array which was in an object we hit an issue with the filtering for readonly and writeonly that caused an exception to be thrown. However this exception was suppressed because spectator only throws certain types of exceptions.
So this PR fixes: