#operationIdFactory not taking effect

7 messages · Page 1 of 1 (latest)

vernal leaf
#

I would like to override the default operationId to the method name:

    operationIdFactory: (controllerKey, methodKey, version) =>  {
        return methodKey
    }
})```

However this is having no effect - am i missing something?
real egret
#

never used this option before

#

add some console.log to that callback to see if its been called

covert pilot
#

This should work. I'll have a look at how we have it set up on our side...

covert pilot
#

This is the setup from one of our applications, I don't see a difference. Which versions of Nest libraries are you on?

vernal leaf
#

It console logs but my spec is still coming out with default values. Not at my computer right now but I am on 11.x.y

#

Current workaround is just annotating each endpoint manually so it's not the end of the world!