Use different Schema based on Collection fields

I have the same issue explained in this answer here, and a new post here
Did you find a solution?