Protects minimal API from invalid arguments