Skip to content

validate-spec should check class and slot references against source and target schemas #199

@amc-corey-cox

Description

@amc-corey-cox

`validate-spec` (#190) validates that a transformation spec is structurally correct (valid keys, nesting, types), but it does not check whether the spec references valid classes and slots in the source or target schemas.

Target schema validation:

  • Class derivation names should exist in the target schema
  • Slot derivation names should be valid slots on their parent class
  • Missing required slot derivations could be flagged

Source schema validation:

  • `populated_from` references should resolve to valid source classes/tables
  • Source slot references in expressions should exist in the source schema

This would catch typos, references to removed/renamed schema elements, and spec/schema drift in both directions.

This is the natural next step after #190 — structural validation is necessary but not sufficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions