Skip to content

Reorganize schema files into schemas/ directory with shared refs and space-level config #13

@mindsocket

Description

@mindsocket

Foundational restructuring to support multiple schemas and composability.

Tasks

  • Create schemas/ directory
  • Move schema.jsonschemas/general.json; update all code references to the default schema path
  • Extract common $defs into schemas/_shared.json (status, priority, wikilink, assessment, base entity properties) to eliminate repetition across schema files
  • Rewrite schemas/general.json to $ref the shared defs
  • Promote schema key in config.json to space level — each space can specify its own schema file; top-level default remains schemas/general.json
  • Ensure --schema CLI option continues to work correctly with the new layout

Why

This is the prerequisite for adding a strict_ost schema and future composable schemas. Separating shared definitions avoids duplication and drift between schemas.

Relates to #3 (research findings).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions