Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime type validation of data #78

Open
cheesycod opened this issue Feb 20, 2025 · 2 comments
Open

Runtime type validation of data #78

cheesycod opened this issue Feb 20, 2025 · 2 comments
Labels
batteries Work in the additional Luau batteries library portion of the code enhancement New feature or request

Comments

@cheesycod
Copy link

cheesycod commented Feb 20, 2025

Could be useful for e.g. webservers. Basically like pydantic but for luau (so smth similar to greentea and t). Basically, checks that a value/table matches the expected 'shape'

@aatxe aatxe added the enhancement New feature or request label Feb 20, 2025
@CompeyDev
Copy link

I feel like this should be a community library like we have in TypeScript (zod, etc.); currently for pure Luau we have GreenTea which does just this.

@aatxe aatxe added the batteries Work in the additional Luau batteries library portion of the code label Mar 19, 2025
@aatxe
Copy link
Owner

aatxe commented Mar 19, 2025

Yeah, something like this could potentially be integrated into batteries for now (and eventually be totally standalone) if we expose more of analysis in the runtime and use it to write such a thing, but if it doesn't meaningfully depend on lute, I think it's too broad to belong in the standard library at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
batteries Work in the additional Luau batteries library portion of the code enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants