Home

List

This is an implementation, and renaming, of schema.org ItemList. Renaming was done as List was considered a more developer friendly alternative. Similarly, schema.org properties itemListElement and itemListOrder were renamed to items and order. Note that, as with every other such renaming in Stencila Schema, a mapping between names is defined and it is trivial to save Stencila Schema documents using the schema.org vocabulary if so desired.

Properties

The List type has these properties:

NameDescriptionTypeInherited from
idThe identifier for this item.StringEntity
itemsThe items in the list.ListItem*-
orderThe ordering of the list.ListOrder-
authorsThe authors of the list.Author*-
provenanceA summary of the provenance of the content within the list.ProvenanceCount*-

Related

The List type is related to these types:

Bindings

The List type is represented in:

Testing

During property-based (a.k.a generative) testing, the properties of the List type are generated using the following strategies.

PropertyComplexityDescriptionStrategy
itemsMin+Generate a single, arbitrary, list item.vec(ListItem::arbitrary(), size_range(1..=1))
Low+Generate up to two, arbitrary, list items.vec(ListItem::arbitrary(), size_range(1..=2))
High+Generate up to four, arbitrary, list items.vec(ListItem::arbitrary(), size_range(1..=4))
MaxGenerate up to eight, arbitrary, list items.vec(ListItem::arbitrary(), size_range(1..=8))
orderMin+Always generate an unordered list.ListOrder::Unordered
Low+Randomly generate either an unordered, or ascending, list.prop_oneof![Just(ListOrder::Unordered),Just(ListOrder::Ascending)]
High+Generate an arbitrary list ordering.ListOrder::arbitrary()

This documentation was generated from List.yaml by docs_types.rs.

© 2026 Stencila