rbeauchamp / Swashbuckle.OData

Extends Swashbuckle with OData v4 support!
Other
128 stars 96 forks source link

EnableQueryFilter.ReturnsCollection() throws NullReferenceException for return type void #172

Closed eloekset closed 4 years ago

eloekset commented 6 years ago

I've got an OData API that defines an action like this:

// ExportCustomerLicenseContent
            ActionConfiguration exportCustomerLicenseContent = builder.Action(nameof(CustomerLicenseViewModelsController.ExportCustomerLicenseContent));
            exportCustomerLicenseContent.Parameter<Guid>("CustomerLicenseId");

The controller method returns void. This is intended, and the API works fine. But Swashbuckle.OData expects an action to always have a return type, and fails to generate a SwaggerDocument for my API.