allow-none has been deprecated for a long time already. Instead use optional and nullable everywhere.