title

Field-level UDA declaring a human-readable display title (the JSON Schema title keyword) for a struct field. When jsonSchemaOf!T reflects over a struct, a field annotated with @title("…") emits "title": "…" on its property schema.

@safe
struct title {}

Members

Variables

value
string value;

the display title emitted as JSON Schema title

Examples

struct Form
{
    @title("Item count") int count;
}