Any way to create types dynamically

But yes it should not say colon missing, instead it should say the schema format is incorrect or something which will help developer to identify the actual root cause and look for the solution