MediaType

sttp.apispec.openapi.MediaType
See theMediaType companion object
final case class MediaType(schema: Option[SchemaLike], example: Option[ExampleValue], examples: ListMap[String, ReferenceOr[Example]], encoding: ListMap[String, Encoding], extensions: ListMap[String, ExtensionValue])

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addExample(key: String, updated: Example): MediaType
def addExtension(key: String, value: ExtensionValue): MediaType
def example(updated: ExampleValue): MediaType
def examples(updated: ListMap[String, ReferenceOr[Example]]): MediaType
def extensions(updated: ListMap[String, ExtensionValue]): MediaType
def schema(updated: SchemaLike): MediaType

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product