All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.smallrye.openapi.runtime.OpenAPIRuntimeBuilder Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show 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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy