Skip to content

feat: Add stub files for validation rules - #8

Draft
matapatos wants to merge 1 commit into
mainfrom
vibe/feat-add-validation-rule-stubs
Draft

feat: Add stub files for validation rules#8
matapatos wants to merge 1 commit into
mainfrom
vibe/feat-add-validation-rule-stubs

Conversation

@matapatos

Copy link
Copy Markdown
Contributor

Summary

  • Add stub files for future validation rules

Details

This PR adds PHP stub files for validation rule attributes and interfaces that are referenced in the TODOs but not yet implemented:

  • stubs/fields/array_of.stub.php - ArrayOf attribute for validating array elements
  • stubs/fields/length.stub.php - Length attribute for validating string lengths
  • stubs/rules/custom.stub.php - Custom interface for custom validation rules

These stubs define the public API that will be implemented in future improvements.

Note

The actual C implementations for these validation rules are not included in this PR and will be added in separate improvements.

Testing

No tests are added in this PR as the implementations are not yet complete.

- Add ArrayOf attribute stub for array validation
- Add Length attribute stub for string length validation
- Add Custom interface stub for custom validation rules

These stubs define the API for future validation rule implementations mentioned in the TODOs.

Note: The actual C implementations for these will be added in future improvements.

Co-authored-by: matapatos <matapatos@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants