Module

schema

github.com/riducms/ridu/schema — Inspect Ridu's resolved collections and fields, and work with resource, field, and locale identifiers.

Functions 32

Types 19

  • type schema.Manifest

    An immutable versioned schema contract.

  • type schema.DateField

    DateField describes how a stored date string is authored and presented.

  • type schema.Plugin

    Plugin records one compiled plugin that participated in config resolution. A plugin's package version and Ridu compatibility range are checked when config is resolved but are not schema, so upgrading a plugin is never a data-model change.

  • type schema.StableID

    A deterministic identifier for schema evolution.

  • type schema.CollectionSlug

    A validated collection or global slug.

  • type schema.LocaleCode

    A validated locale identity used by operations, manifests, and storage.

  • type schema.AdminDataType

    AdminDataType is the JSON subset supported by typed admin loaders. Inputs are objects of scalar query parameters; outputs may contain nested objects and arrays. Optional marks an omitted object property, Nullable a JSON null.

  • type schema.AdminLoader

    AdminLoader describes a compiled, authenticated admin read. Executable code remains in core; these JSON shapes drive generated browser contracts.

  • type schema.BlockAdmin

    BlockAdmin contains presentation metadata derived from direct block children.

  • type schema.BlockDefinitions

    BlockDefinitions holds the block definitions of one schema and the definition views shared by all of their placements. A builder may add definitions while it resolves configuration; views are created on first use.

  • type schema.BlockLabels

    BlockLabels contains resolved author-facing names and admin language overrides.

  • type schema.DateFormat

    DateFormat identifies the accepted date string contract across APIs and admin.

  • type schema.EmbeddedTree

    EmbeddedTree locates a structural node or node list through literal properties. Only Children is recursively traversed; case payloads use ordinary schemas.

  • type schema.EmbeddedTreeCase

    EmbeddedTreeCase declares schema-owned payloads for one structural node tag. Like a Blocks field, it selects block definitions by slug; an empty selection reserves the envelope while admitting no payloads.

  • type schema.FieldEditor

    FieldEditor selects an application-local value editor. Config is public JSON.

  • type schema.FieldListSet

    FieldListSet records field lists a definition traversal has entered. A shared definition passes the same slice wherever it is placed, so a traversal that enters each list once does work proportional to definitions.

  • type schema.FieldTraits

    FieldTraits summarizes the fields of a list or beneath a field, so a value traversal can skip a subtree whose schema cannot need it.

  • type schema.PrimitiveListField

    PrimitiveListField constrains the number of values in one ordered text or number list. Items have no stored identity or nested field definitions. TextField and NumberField hold the corresponding per-item constraints.

  • type schema.ScalarLiteral

    ScalarLiteral stores a canonical string, finite number, or boolean operand for visibility conditions and relationship filters.

Manifest model 18

Capability settings 8

Field details 32

Plugin manifest 5

Validation 16

Constants 50

Methods 22