This function returns the newly initialized attribute, or an empty attribute if the type is not specified in the schema.