Skip to content

feat(core): implement request validation attribute#73

Merged
BizWiz3 merged 1 commit into
mainfrom
validator-attribute
May 30, 2026
Merged

feat(core): implement request validation attribute#73
BizWiz3 merged 1 commit into
mainfrom
validator-attribute

Conversation

@Leoj030

@Leoj030 Leoj030 commented May 30, 2026

Copy link
Copy Markdown
Collaborator
  • Add a new Validator attribute to validate request body, params, and query parameters.
  • Enable RegistryGenerator to load validator tables in addition to function attributes.
  • Update types.luau with validation schema types (BodyField, StringField, and ValidatorSchema). - Replace type with typeof for method handler validation in Routing/Generator.luau.
  • Add test validators and apply the @Validator(createUser) attribute to the test route.

- Add a new `Validator` attribute to validate request body, params, and query parameters.
- Enable `RegistryGenerator` to load validator tables in addition to function attributes.
- Update `types.luau` with validation schema types (`BodyField`, `StringField`, and `ValidatorSchema`). - Replace `type` with `typeof` for method handler validation in `Routing/Generator.luau`.
- Add test validators and apply the `@Validator(createUser)` attribute to the test route.
@Leoj030 Leoj030 requested a review from BizWiz3 May 30, 2026 11:50
@Leoj030 Leoj030 self-assigned this May 30, 2026
@BizWiz3 BizWiz3 merged commit 2059815 into main May 30, 2026
1 check passed
@BizWiz3 BizWiz3 deleted the validator-attribute branch May 30, 2026 11:51
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