Convert enum constraint to enum in json schema.