deprecate Variable.to_json_schema method; introduce JSONSchemaDraft4Encoder