OperationId required to generate lowerCamelCased action names
pocman opened this issue · 2 comments
paths:
/options:
post:
operationId: postOptions
will generate val postOptions = postOptionsAction{}
paths:
/options:
post:
will generate val postoptions = postoptionsAction{}
Action name generator should create valid lowerCamelCased action names.
We don't change case of the url on purpose. Sometimes people required to use specific case in the URL and we want to preserve this.
If this behaviour is confusing, we probably could add some specification-level switch (vendor extension) so that user can define how he likes names to be formed.
Ok, valid point.
I don't think that someone should use two endpoints with a different casing but it's not really the place to add some interpretation over swagger specification.
No need to add more complexity in the generator if operationId
is available.