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

Size constraint on File #1166

Open
platon-ivanov opened this issue Oct 10, 2024 · 0 comments
Open

Size constraint on File #1166

platon-ivanov opened this issue Oct 10, 2024 · 0 comments
Labels
external-contributor-friendly Doesn't rely heavily on contextual knowledge of ArkType (may still be complex)

Comments

@platon-ivanov
Copy link

Request a feature

Setting size constraints on File:

type({
    myFile: `File<5MB`
})

🤷 Motivation

Checking MIME types and other tasks would still require using narrow. But it would allow for more concise definitions of file types in the simplest use-cases.

@ssalbdivad ssalbdivad added the external-contributor-friendly Doesn't rely heavily on contextual knowledge of ArkType (may still be complex) label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor-friendly Doesn't rely heavily on contextual knowledge of ArkType (may still be complex)
Projects
Status: Backlog
Development

No branches or pull requests

2 participants