Package: effect
Module: Schema
Annotations shared by all schema nodes. These map to common JSON Schema /
OpenAPI fields: title, description, format, etc.
Signature
export interface Augment extends Annotations {
/**
* Human-readable description of what a value is expected to satisfy.
*
* **Details**
*
* For filter and refinement failures, the default formatter uses
* `message` first, then `expected`, and finally falls back to `<filter>`.
*
* Use this to name a failed filter in the default message:
* `Expected <expected>, got <actual>`.
*/
readonly expected?: string | undefined
readonly title?: string | undefined
readonly description?: string | undefined
readonly documentation?: string | undefined
readonly readOnly?: boolean | undefined
readonly writeOnly?: boolean | undefined
readonly format?: string | undefined
readonly contentEncoding?: string | undefined
readonly contentMediaType?: string | undefined
readonly contentSchema?: Json | undefined
}
Since v4.0.0