sttp.apispec.openapi.validation

Members list

Type members

Classlikes

case class IncompatibleAllowEmptyValue(clientValue: Option[Boolean], serverValue: Option[Boolean]) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleAllowReserved(clientValue: Option[Boolean], serverValue: Option[Boolean]) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleContentType(clientValue: Option[String], serverValue: Option[String]) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleEncoding(encodingName: String, subIssues: List[OpenAPICompatibilityIssue]) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleExplode(clientValue: Option[Boolean], serverValue: Option[Boolean]) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleHeader(headerName: String, subIssues: List[OpenAPICompatibilityIssue]) extends OpenAPICompatibilitySubIssues

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleMediaType(mediaType: String, subIssues: List[OpenAPICompatibilityIssue]) extends OpenAPICompatibilitySubIssues

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleOperation(httpMethod: String, subIssues: List[OpenAPICompatibilityIssue]) extends OpenAPICompatibilitySubIssues

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleParameter(name: String, subIssues: List[OpenAPICompatibilityIssue]) extends OpenAPICompatibilitySubIssues

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatiblePath(pathName: String, subIssues: List[OpenAPICompatibilityIssue]) extends OpenAPICompatibilitySubIssues

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleRequiredValue(clientValue: Option[Boolean], serverValue: Option[Boolean]) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleSchema(schemaIssues: List[SchemaCompatibilityIssue]) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleSecurityRequirement(securityRequirement: SecurityRequirement) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class IncompatibleStyle(clientValue: Option[ParameterStyle], serverValue: Option[ParameterStyle]) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class MissingEncoding(encodingName: String) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class MissingHeader(headerName: String) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class MissingMediaType(mediaType: String) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class MissingOperation(httpMethod: String) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class MissingParameter(name: String) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class MissingPath(pathName: String) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class MissingResponse(responsesKey: ResponsesKey) extends OpenAPICompatibilityIssue

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

A utility for comparing two OpenAPI specifications to validate their compatibility.

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
Supertypes
class Object
trait Matchable
class Any

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes