Class OpenApiLoader

java.lang.Object
com.atlassian.oai.validator.util.OpenApiLoader

public class OpenApiLoader extends Object
  • 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 the OpenAPI from 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