if you manually create variables, you can only save them as strings.
But your schema is an object. So you need to transform the object to a string with:
JSON.stringify(yourObject)
and the other way around to use if from a variable you need to
do something like:
const schema = JSON.parse(pm.variables.get("ttSchema"));
I hope this works.