Closed
Description
Symptoms
When OData is mixed and matched with non-OData controllers and actions, then [ApiExplorerSettings]
are not honored.
Triage
After investigation, the issue doesn't seem to be specific to OData, but rather any controller or action that uses implicit versioning (e.g. no explicit attributes or conventions). This should be allowed, but is missed do to the underlying ControllerModel not being attached to implicitly versioned ActionModel instances.
Workaround
There are two simple workarounds to this problem until the next patch.
- Apply an explicit API version with an attribute or convention (ex:
[ApiVersion("1.0")]
) - Apply the
[ApiExplorerSettings(IgnoreApi=false)]
directly on actions rather than the controller