component

fun component(name: String, schema: String)

Adds the JSON Schema schema to the OpenAPI document under components/schemas/<name>, so that a response or a parameter can refer to it with ref. ErrorEnvelope, the shared error envelope, is always there.