I have created my ecore model:

I have specified it in my xtext file:
MinRequirementsType returns MinRequirementsType:
'MinRequirementsType'
Next I want to implement the rule, but when I try
enum minrequire: 0|1 ;
I get a mistake!
How is the correct syntax?
Your enum declaration is wrong. Try the following:
Regards,
Xavier