fixing the controller spec generator to not emit deprecation warnings