Skip to content

Migrate isProblemJsonSchema to use built-in schema function #79

@andreyyudin

Description

@andreyyudin

Description:
Refactor src/functions/isProblemJsonSchema.js to utilize the Spectral schema function for ProblemJSON schema validation.

Benefits:

  • Leverages Spectral’s native schema handling and validation capabilities.
  • Simplifies codebase by removing custom ProblemJSON schema logic.
  • Ensures consistent validation behavior across all rules.

Acceptance Criteria:

  • Rule uses Spectral’s built-in schema function for validation.
  • Legacy custom validation is removed.
  • Rule behavior and outputs remain consistent with prior implementation.

Proposed Steps:

  1. Replace custom validation logic with Spectral schema function usage.
  2. Update rule configuration and references accordingly.
  3. Verify rule output consistency with tests.

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