Skip to content

Each assertion should be loaded independently instead of grouping in one factory #20

Closed
@OptimumCode

Description

@OptimumCode

Currently, assertions for properties (properties, patternProperties, additionalProperties), arrays (items, additonalItems) and condition (if, then, else) are loaded by a single factory (for each group).
Because of that the factory must load all of them and conditionally create an assertion that choose which of those "sub-assertions" to use.
This makes its implementation less obvious (because each assertion must able to be referenced).

The idea is to split each assertion in its own factory and create a group assertion that will execute them in the required order (because the order does matter in this case)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions