Text

class Text(val content: String, val contentType: ContentType = ContentType.Application.Json) : OpenApiDocSource(source)

A static string source for an OpenAPI document.

Report a problem

Parameters

content

The text returned for the spec.

Constructors

Link copied to clipboard
constructor(content: String, contentType: ContentType = ContentType.Application.Json)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun read(application: Application, defaults: OpenApiDoc): OpenApiDocSource.Text

Reads the OpenAPI document from the given source.

Link copied to clipboard
open override fun toString(): String