Hi, I'm using the ktor plugin to do <OpenAPI speci...
# ktor
f
Hi, I'm using the ktor plugin to do OpenAPI specification generation, but the
operationId
is empty for every route. Does the plugin not have an option to set the
operationId
or what would be the intended way to set it?
b
hi Florian, it's indeed missing from the spec. I can introduce it in the next patch it ought to be a KDoc option like
@operationId getWidgets
f
Thanks, that would be great! I have since also noticed the generated object schemas do not support the required fields property or nullable properties. Also the properties have no description even when the variables are documented in the kotlin source code. Support for this would also be amazing. Oh and, an option for marking query parameters as required would also be cool.
b
the required fields and nullables should work in the full release... I hadn't considered injecting the KDoc from data classes into the schema descriptions... interesting 🤔