The wiki https://wiki.factorio.com/Prototype/Item#flags says that the flags property is mandatory on item prototypes. But most of the items in the base game do not have the flags property set.
So is it not really mandatory, or is the base mod an exception?
Item prototype flags
Re: Item prototype flags
Note that the flags = nil and flags = {} is not the same. You are need at least empty table.
Re: Item prototype flags
They are optional.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.