io.quarkus.smallrye.openapi.runtime.OpenAPIRuntimeBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-smallrye-openapi Show documentation
Show all versions of quarkus-smallrye-openapi Show documentation
Document your REST APIs with OpenAPI - comes with Swagger UI
The newest version!
package io.quarkus.smallrye.openapi.runtime;
import io.smallrye.openapi.api.SmallRyeOpenAPI;
/**
* Customized {@link SmallRyeOpenAPI.Builder} implementation that only includes
* functionality that should occur at application runtime. Specifically, it only
* supports loading a static OpenAPI file/stream, applying OASFilter instances,
* and writing the OpenAPI model to a DOM for later serialization to JSON or
* YAML.
*/
class OpenAPIRuntimeBuilder extends SmallRyeOpenAPI.Builder {
@Override
public SmallRyeOpenAPI build() {
var ctx = super.getContext();
buildPrepare(ctx);
buildStaticModel(ctx);
return buildFinalize(ctx);
}
}