How to use $ref to take information from environment

See How to save schema to environment and reuse it after