Closed dschenkelman closed 10 years ago
You are right, I can't remember the exact issue I was trying to resolve, but this was the wrong way of going about it. Let me try and fix that.
Great, thought it was a bit weird. Kept seeing log entries failing for string response schemas and couldn't figure out what it was.
Awesome!
I believe schemas like this one should be usable:
IMO it should be up to the schema whether something is a valid response or not. Thoughts?
https://github.com/mac-/ratify/blob/master/lib/RouteSchemaManager.js#L267-L269