OpenAPI

wvlet.airframe.http.openapi.OpenAPI$
See theOpenAPI companion class
object OpenAPI

A subset of Open API objects necessary for describing Airframe RPC interfaces

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
OpenAPI.type

Members list

Concise view

Type members

Classlikes

case class Components(schemas: Option[Map[String, SchemaOrRef]], responses: Option[Map[String, Response]], parameters: Option[Map[String, ParameterOrRef]])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Encoding()

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Header()

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object In

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
In.type
sealed trait In

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object cookie.type
object header.type
object path.type
object query.type
case class Info(title: String, version: String, description: Option[String], termsOfService: Option[String])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class License(name: String, url: Option[String])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class MediaType(schema: SchemaOrRef, encoding: Option[Map[String, Encoding]])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class OneOf(oneOf: Seq[SchemaOrRef]) extends Union3[Schema, SchemaRef, OneOf]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Union3[Schema, SchemaRef, OneOf]
trait Union
class Object
trait Matchable
class Any
case class Parameter(name: String, in: In, description: Option[String], required: Boolean, schema: Option[SchemaOrRef], deprecated: Option[Boolean], allowEmptyValue: Option[Boolean]) extends Union2[Parameter, ParameterRef]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Union2[Parameter, ParameterRef]
trait Union
class Object
trait Matchable
class Any
case class ParameterRef($ref: String) extends Union2[Parameter, ParameterRef]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Union2[Parameter, ParameterRef]
trait Union
class Object
trait Matchable
class Any
case class PathItem(summary: String, description: String, operationId: String, parameters: Option[Seq[ParameterOrRef]], requestBody: Option[RequestBody], responses: Map[String, Union2[Response, ResponseRef]], tags: Option[Seq[String]])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class RequestBody(description: Option[String], content: Map[String, MediaType], required: Boolean)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Response(description: String, headers: Option[Map[String, Header]], content: Map[String, MediaType]) extends Union2[Response, ResponseRef]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Union2[Response, ResponseRef]
trait Union
class Object
trait Matchable
class Any
case class ResponseRef($ref: String) extends Union2[Response, ResponseRef]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Union2[Response, ResponseRef]
trait Union
class Object
trait Matchable
class Any
case class Schema(`type`: String, default: Option[String], format: Option[String], description: Option[String], required: Option[Seq[String]], properties: Option[Map[String, SchemaOrRef]], additionalProperties: Option[SchemaOrRef], items: Option[SchemaOrRef], nullable: Option[Boolean], enum: Option[Seq[String]]) extends Union3[Schema, SchemaRef, OneOf]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Union3[Schema, SchemaRef, OneOf]
trait Union
class Object
trait Matchable
class Any
case class SchemaRef($ref: String) extends Union3[Schema, SchemaRef, OneOf]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Union3[Schema, SchemaRef, OneOf]
trait Union
class Object
trait Matchable
class Any

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def ofRouter(router: Router, config: OpenAPIGeneratorConfig): OpenAPI

Generate Open API model class from Airframe HTTP/RPC Router definition

Generate Open API model class from Airframe HTTP/RPC Router definition

Attributes

Returns:

OpenAPI model class

def parseJson(json: String): OpenAPI