Variable Schema
A type-variable reference, written { "var": "<name>" }, that matches whatever a generic's parameter is bound to.

Extends · closed

A variant of the — one of the shapes a schema is allowed to take.
var
The name of the type parameter, declared in an enclosing `params`, whose bound schema this node stands for.
description
What the type variable stands for, when it is written inline.
optional
name
Legacy: a name some published schemas still carry. New schemas are named by their page.
optional

A var schema is a type variable inside a generic. It matches whatever schema the generic's parameter is bound to.

This document describes the schema/var-schema type, one variant of the meta-schema. Its formal schema is attached as the schemaDefinition in this document's metadata, so the app can show it and create values of this type. Typed documents explains how that works.

See also

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime