Skip to content

Reject unknown and source-inapplicable vex.ws fields #31

Closed

Description

@LunaStev

Problem

The manifest parser silently ignores unknown object keys and fields that do not apply to the selected dependency source.

Verified on master at 8c2d93a:

  • A root field named dependecies is ignored, so the intended dependency graph disappears without an error.
  • A path dependency containing branch = "main" is accepted even though branch selectors apply only to Git.
  • Arbitrary misspelled dependency keys are ignored.

Silent acceptance is dangerous for a package manager because a typo can select a different source or graph than the author intended.

Expected behavior

vex.ws should have a strict, versioned schema and reject fields that Vex does not understand or cannot apply.

Acceptance criteria

  • Reject unknown root manifest fields with the field name and manifest path.
  • Reject unknown dependency fields with the package name.
  • Reject branch, tag, and rev on path dependencies.
  • Reject source-specific combinations before any network or filesystem mutation.
  • Suggest a close known field when practical.
  • Add tests for root typos, dependency typos, and source-inapplicable fields.
  • Document the accepted manifest schema and extension policy.

Activity

  1. added
    bug
    dependencies
    stability
    on Sep 18, 2026
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

    bugdependenciesstability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions