manage undefined type with no required in schema