Package org.mockserver.openapi
Class OpenAPIConverter
java.lang.Object
org.mockserver.openapi.OpenAPIConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildExpectations(String specUrlOrPayload, Map<String, Object> operationsAndResponses) buildExpectations(String specUrlOrPayload, Map<String, Object> operationsAndResponses, String contextPathPrefix) static booleanisJsonContentType(String contentType) static booleanisXmlContentType(String contentType) True when the content type denotes XML —application/xml,text/xml, or any media type with a+xmlstructured-syntax suffix (e.g.
-
Constructor Details
-
OpenAPIConverter
-
-
Method Details
-
buildExpectations
-
buildExpectations
-
isJsonContentType
-
isXmlContentType
True when the content type denotes XML —application/xml,text/xml, or any media type with a+xmlstructured-syntax suffix (e.g.application/atom+xml). Used to route a generated example throughXmlExampleSerializerso an XML response yields a real XML body rather than a JSON-shaped string.
-