Function to set/modify the type of a json schema.
Union types and any.