Companion

object Companion

Helpers for the JSON fragments of a declaration.

Functions

Link copied to clipboard
fun ref(name: String): String

Returns the JSON Schema {"$ref": "#/components/schemas/<name>"}, a reference to a schema that component added.