-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description:
Refactor src/functions/isApiInfoJsonSchema.js to use Spectral’s built-in schema function instead of a custom validation implementation. This will align the rule with the current best practices for schema-based validation in Spectral and reduce maintenance overhead.
Benefits:
- Leverages Spectral’s native schema handling and validation capabilities.
- Simplifies codebase by removing custom JSON schema logic.
- Ensures consistent validation behavior across all rules.
Acceptance Criteria:
isApiInfoJsonSchema.jsno longer exists.- The rule calls Spectral’s built-in
schemafunction for evaluation. - Unit tests confirm equivalent or improved behavior compared to the old implementation.
Proposed Steps:
- Replace custom validation logic with Spectral
schemafunction usage. - Update rule configuration and references accordingly.
- Verify rule output consistency with tests.
Metadata
Metadata
Assignees
Labels
No labels