Simplified the code in json_schema_type.
Simplified the code in json_schema_type.

Also removed the resolve parameter and now it will resolve automatically
if it see `$ref` in the definition.

upsight/doctor