Allow Types to provide invariant constraints #82

Open
opened 2026-09-30 19:29:32 +02:00 by c.fahner · 0 comments
Owner

Currently, Schema\Constraint's can only be provided at class-level. Some Type's, such as a "ranged integer" for example, are already invariants.

An interface should be added that can be implemented by Type's to provide the schema with additional Constraint\Invariant's. They should be automatically added to the schema's list of constraints.

Currently, `Schema\Constraint`'s can only be provided at class-level. Some `Type`'s, such as a "ranged integer" for example, are already invariants. An interface should be added that can be implemented by `Type`'s to provide the schema with additional `Constraint\Invariant`'s. They should be automatically added to the schema's list of constraints.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
slendium/ocd#82
No description provided.