making json_schema a class-level thing