fix traits with params example

a query parameter value cannot be a scalar node. it must be either null or a mapping node