making json_schema a class-level thing, rather than a validation-level thing