getOptions

getRouter

Construct a new router based on spec. It will fail if you are trying to mount a spec with security schemes
without assigned handlersNote: Router is constructed in this function, so it will be respected the path definition ordering.