improving usage of json-schema