Hello! I’m trying to figure out how to et up the o...
# ktor
m
Hello! I’m trying to figure out how to et up the openApi generator plugin in a multi module plugin but I’m strugling a lot. Is there any guidelines on how to do it? 🙏🏻
cc @simon.vergauwen 🥹
If I add the openapi plugin in each module
Copy code
openApi {
        enabled = true
    }
each one generates a independent
pgenerated-api.json
but the main /opeanapi endpoint displays only the documentation of the main module, the others are totally ignored. I dont know how to make them merge inro a single json file to display the documentation 😕
s
Hey @Marc, Oh, that is a great point. I'm actually not entirely sure if this is implemented yet. I'd say the current support in 3.3.0 is early preview 😅 In 3.4.0 the Ktor team hopes to make all the information available at runtime, and then it'll assume it'll get merged at runtime. This will also allow generating Smithy, or TypeSpec documentation instead of OpenAPI, or customising the metadata. Let me check if we already have an issue for this.
🤘🏻 1
In terms of documentation, we're working on it. Its always behind on the actual release, since we don't think it makes sense waiting to releasing before the docs are completely finished. I hope to align the release post / What's New the next year. For now check the example https://github.com/bjhham/open-api-eap-template.
m
lovely, thank you!