Fixed JSON and others content-type detection and handling in schema validation