io.quarkiverse.openapi.generator.SpecItemConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-openapi-generator Show documentation
Show all versions of quarkus-openapi-generator Show documentation
Generation of Rest Clients based on OpenAPI specification files
The newest version!
package io.quarkiverse.openapi.generator;
import java.util.Optional;
import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.annotations.ConfigItem;
/**
* This class represents the runtime authentication related configurations for the individual OpenApi spec definitions,
* i.e. the provided files.
*/
@ConfigGroup
public class SpecItemConfig {
/**
* Authentication related configurations for the different securitySchemes present on a given OpenApi spec
* definition file.
*
* For example, given a file named petstore.json, the following prefix must be used to configure the authentication
* related information quarkus.openapi-generator.petstore_json.auth
*
* @see AuthsConfig
*/
@ConfigItem
public AuthsConfig auth;
public Optional getAuth() {
return Optional.ofNullable(auth);
}
@Override
public String toString() {
return "SpecItemConfig{" +
"auth=" + auth +
'}';
}
}