[Enhancement] Remove OpenAPI parameter from DefaultCodegen methods
Created by: cvgaviao
The methods hasBodyParameter, hasFormParameter, getConsumesInfo, getProducesInfo, addOneOfInterfaceModel, getOneOfAnyOfDescendants and discriminatorFound doesn't need to have an OpenAPI object as a parameter since the DefaultCodegen class already has it as an instance attribute and its its always required.
Also, removing the static property from getConsumesInfo and getProducesInfo facilitates override them.