Concrete
Rulessections

concrete/sections/schema-invalid

A section's materialized schema or fill spec fails to parse.

A section's materialized schema or fill spec fails to parse.

Graded by the sections stage of concrete check, in the probe venue. A violation reports this id and the file it failed at — see every rule and concrete check.

Reason

What the platform stores is not your declaration but the schema materialized from it — the object the editor builds its sidebar from and the fill spec the planner reads. A section carries both in one value, and this stage parses them exactly as publishing will, so a declaration the types accept but the stored shape refuses fails here rather than at publish, when the template is already in someone's hands.

Fix

Read the message: it names the section and the field the parse rejected. The common cause is an empty or missing string where the stored shape requires content — a section label, a slot label, a select with no choices.

Before and after

import { Section, section, Slot, text } from "@homepages/concrete";

// Compiles, and materializes to a schema with no display name.
export const Hero = section(
  { key: "hero", label: "", slots: { headline: text.medium({ label: "Headline" }) } },
  ({ slot }) => (
    <Section>
      <Slot.Text slot={slot.headline} as="h1" />
    </Section>
  ),
);
import { Section, section, Slot, text } from "@homepages/concrete";

export const Hero = section(
  { key: "hero", label: "Hero", slots: { headline: text.medium({ label: "Headline" }) } },
  ({ slot }) => (
    <Section>
      <Slot.Text slot={slot.headline} as="h1" />
    </Section>
  ),
);

On this page