Add optional attribute 'required' for parameters/parameter
This attribute is already heavily used so it should be in standard. It
looks very useful but often it would be preferable to have an option
to enter more complex queries (e.g enter X or Y)