ExampleConfig

Configuration for examples

Properties

Link copied to clipboard

The GenericExampleEncoder responsible for encoding all example values.

Functions

Link copied to clipboard
fun encoder(exampleEncoder: GenericExampleEncoder)

Specify a custom encoder for example objects

Link copied to clipboard

Add a shared example that can be referenced by all routes. The name of the example has to be unique among all shared examples and acts as its id.

fun example(name: String, example: Example)
fun example(name: String, example: ValueExampleDescriptorConfig.() -> Unit)

Add a shared example that can be referenced by all routes by the given name. The provided name has to be unique among all shared examples and acts as its id.