OpenAPI does not work when create_server()

terminal:

openapi [http://unknown/docs]

on host/docs/swagger - “No operations defined in spec!”

As I mentioned to you in response in the Discord server, the likely issue is that you are not triggering any of the server events. When using the low-level create_server you are entering “buyer-beware” mode, which means you will be responsible for much more server lifecycle.

Unless you have a very specific reason for using create_server, I would suggest you avoid it.