"Consumes" property at operation level does not override Swagger object when rendering SmartDocs

I have an API with globally defined "consumes" at the Swagger object level:

consumes:
  - application/json
  - application/x-www-form-urlencoded

For one specific operation, I override that with:

consumes:
  - application/x-www-form-urlencoded

According to the OpenAPI specification, "This overrides the consumes definition at the Swagger Object. An empty value MAY be used to clear the global definition."

When I import this API to my developer portal and render SmartDocs, it automatically creates a header parameter called Content-Type with a dropdown containing "application/json" and "application/x-www-form-urlencoded" for all operations, including the one that is overridden.

4935-screen-shot-2017-05-25-at-111009-am.png

On the operation that is overridden, the Resource Summary correctly lists Content Type as "application/x-www-form-urlencoded" and the correct header parameter is passed no matter which dropdown value is selected, so why is the dropdown rendered?

I know I can remove it manually via the portal UI, but is there a setting I can change so it isn't rendered at all?

1 0 392
0 REPLIES 0