Skip to content

Validate pre-fetched verify-pr input against its JSON schema #287

Open

Description

@sourcery-ai

The pre-fetched input check currently validates only that the mounted input file contains syntactically valid JSON. It does not validate the parsed object against verify-pr-input.schema.json. As a result, JSON that is valid but missing or containing malformed task or github fields is accepted, after which later field accesses may fail or operate on incomplete data instead of following the documented invalid-input path.

Update the pre-fetched input handling to validate the file against verify-pr-input.schema.json before treating it as available. Add or update tests covering syntactically valid JSON that violates the schema, and verify that such input is rejected through the documented invalid-input behavior.

Tracking: TC-5980.


I created this issue for @mrizzi from #286 (comment).

Tips and commands

Getting Help

Activity

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