JsonSchemaDocumentationOps

endpoints4s.algebra.JsonSchemas.JsonSchemaDocumentationOps
sealed trait JsonSchemaDocumentationOps[A]

Documentation related methods for annotating schemas. Encoder and decoder interpreters ignore this information.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class EnumOps[A]
class JsonSchemaOps[A]
class RecordOps[A]
class TaggedOps[A]

Members list

Type members

Types

type Self <: JsonSchema[A]

Value members

Abstract methods

def withDescription(description: String): Self

Include a description of what this schema represents

Include a description of what this schema represents

  • Encoder and decoder interpreters ignore this description,
  • Documentation interpreters can show this description.

Value parameters

description

information about the values described by the schema

Attributes

def withExample(example: A): Self

Include an example of value in this schema

Include an example of value in this schema

  • Encoder and decoder interpreters ignore this value,
  • Documentation interpreters can show this example value.

Value parameters

example

Example value to attach to the schema

Attributes

def withTitle(title: String): Self

Include a title for the schema

Include a title for the schema

  • Encoder and decoder interpreters ignore the title,
  • Documentation interpreters can show this title.

Value parameters

title

short title to attach to the schema

Attributes