Add explicit support for consumes and produces parameters in spec