Currently saving of Lua modules with invalid code is blocked. This should also be done in EntitySchema. In particular it should be not possible to create an EntitySchema that is empty (or have only comments).
Editing labels, descriptions and aliases should not trigger validation though.