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

io.quarkiverse.openapi.generator.AuthsConfig Maven / Gradle / Ivy

The newest version!
package io.quarkiverse.openapi.generator;

import java.util.Map;
import java.util.Optional;

import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.annotations.ConfigItem;

@ConfigGroup
public class AuthsConfig {

    /**
     * Configurations for the individual securitySchemes present on a given OpenApi spec definition file.
     * 

* The key must be any of the sanitized names of the securitySchemes. * For example, given a file named petstore.json with a securityScheme named "petstore-auth", we have that the file * name is sanitized into the name petstore_json and the security scheme name is sanitized into the name * "petstore_auth". And thus, the specific configurations for this security scheme must start with the prefix * quarkus.openapi-generator.petstore_json.auth.petstore_auth * * @see SpecItemConfig * @see AuthConfig */ @ConfigItem(name = ConfigItem.PARENT) public Map authConfigs; public Optional getItemConfig(String authConfig) { return Optional.ofNullable(authConfigs.get(authConfig)); } @Override public String toString() { return "AuthsConfig{" + "authConfigs=" + authConfigs + '}'; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy