RicoSuter/NSwag

Improve GenerateOperationIds() method

Open

#836 opened on Jul 6, 2017

View on GitHub
 (2 comments) (0 reactions) (0 assignees)C# (1,189 forks)batch import
help wantedtype: enhancement

Repository metrics

Stars
 (6,291 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

The current implementation of SwaggerDocument.GenerateOperationIds does a poor job of naming operations that are defined by the OData spec. Ideally there should be a way of providing a custom naming method with a more appropriate implementation.

(NB: this method already has a comment saying TODO: Improve this method so this is a known problem.

I imagine that the easiest way of achieving would be to make the method virtual so it can be overridden in a derived class.

Contributor guide