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.
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?
User | Count |
---|---|
7 | |
2 | |
2 | |
2 | |
1 |