Package org.mockserver.openapi
Class OpenAPIParser
java.lang.Object
org.mockserver.openapi.OpenAPIParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.swagger.v3.oas.models.OpenAPIbuildOpenAPI(String specUrlOrPayload, MockServerLogger mockServerLogger) static voidclearCache(String specUrlOrPayload) static booleanHelper function that checks if the provided string is a reference to an API specification filemapOperations(io.swagger.v3.oas.models.PathItem pathItem)
-
Field Details
-
OPEN_API_LOAD_ERROR
- See Also:
-
-
Constructor Details
-
OpenAPIParser
public OpenAPIParser()
-
-
Method Details
-
clearCache
-
isSpecUrl
Helper function that checks if the provided string is a reference to an API specification file- Parameters:
specUrlOrPayload- - string that might contain an API specification file reference- Returns:
- true if the provided string ends with special file suffix
-
buildOpenAPI
public static io.swagger.v3.oas.models.OpenAPI buildOpenAPI(String specUrlOrPayload, MockServerLogger mockServerLogger) -
mapOperations
-