sttp.apispec.openapi.validation.OpenAPIComparator
See theOpenAPIComparator companion object
class OpenAPIComparator
A utility for comparing two OpenAPI specifications to validate their compatibility.
The OpenAPIComparator
class compares the client's OpenAPI specification with the server's specification to detect and highlight compatibility issues. It evaluates various components including paths, operations, parameters, request bodies, responses, headers, schemas, content, and media types.
Note: This comparator does not compare meta-data, such as the info object, server lists, or descriptions in properties.
Value parameters
- clientOpenAPI
-
the OpenAPI specification provided by the client.
- serverOpenAPI
-
the OpenAPI specification provided by the server.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article