Skip to content

A member kind can name a JSON Schema its member's file must pass #3672

Closed

Description

@lex00

From terragucci's control-repo work (INTENTIUS/terragucci#753). A member kind today can't check a member's own file (e.g. terragucci.yml in a terragucci control repo) against a schema; records are checked, member files are not. Let a kind name a JSON Schema and a file path, and have chant workspace check validate the member's file against it.

Related: #3168 (members that reference other repos' workspaces), #3166, #3180. With #3168 this is how a terragucci control repo becomes the member that lets chant and behold see every estate.

Activity

  1. lex00 commented on Oct 24, 2026

    @lex00
    ContributorAuthor

    Landed on integration/chant-goal in 941ab88 (merge of d2042e6). A kind's kinds-file entry takes memberFile: { path, schema }; the schema is a draft 2020-12 JSON file inside the supplying package, read as data (a bad one is WSP002). chant workspace check fails a member whose file is missing or fails the schema with the new WSP012. YAML for .yml/.yaml, JSON otherwise. Docs: reference/workspace-kinds#a-members-own-file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions