Schema autodetector