Package com.atlassian.oai.validator.util
Class OpenApiLoader
java.lang.Object
com.atlassian.oai.validator.util.OpenApiLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.swagger.v3.oas.models.OpenAPIloadApi(OpenApiInteractionValidator.SpecSource specSource, List<io.swagger.v3.parser.core.models.AuthorizationValue> authData, io.swagger.v3.parser.core.models.ParseOptions parseOptions) Loads theOpenAPIfrom the specified source and prepares it for usage.
-
Constructor Details
-
OpenApiLoader
public OpenApiLoader()
-
-
Method Details
-
loadApi
public io.swagger.v3.oas.models.OpenAPI loadApi(@Nonnull OpenApiInteractionValidator.SpecSource specSource, @Nonnull List<io.swagger.v3.parser.core.models.AuthorizationValue> authData, @Nonnull io.swagger.v3.parser.core.models.ParseOptions parseOptions) Loads theOpenAPIfrom the specified source and prepares it for usage.See
removeRegexPatternOnStringsOfFormatByte(OpenAPI)for more information on the preparation.- Parameters:
specSource- The OpenAPI / Swagger specification to use in the validator.authData- Authentication data for reading the specification.- Returns:
- the loaded and prepared
OpenAPI
-