Map schema
The variant for a map whose keys are arbitrary and whose values all match the one schema under values, while known fields belong in a struct schema.

Extends · closed

A variant of the — one of the shapes a schema is allowed to take.
type
Always the map core type.
map
values
The schema every value of the map must match.
optional
description
What the map is for, when it is written inline; a published schema is described by its page.
optional
params
Type parameters that make this schema generic, each with its default schema.
⟨ * : ⟩optional
name
Legacy: a name some published schemas still carry. New schemas are named by their page.
optional

A map schema types a map whose keys are arbitrary and whose values all match the schema under values. A map with known field names is a struct schema.

This document describes the schema/map-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