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

Add constraint for file extension #10

Closed
sashirestela opened this issue Apr 4, 2024 · 0 comments · Fixed by #11
Closed

Add constraint for file extension #10

sashirestela opened this issue Apr 4, 2024 · 0 comments · Fixed by #11
Assignees
Labels
enhancement New feature or request

Comments

@sashirestela
Copy link
Owner

This new constraint should apply to Path or File objects:

@Extension({"mp3", "mp4", "mpeg"})
Path file

If the object does not match, the message error will be:
extension must be one of mp3 mp4 mpeg

@sashirestela sashirestela added the enhancement New feature or request label Apr 4, 2024
@sashirestela sashirestela self-assigned this Apr 4, 2024
@sashirestela sashirestela linked a pull request Apr 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant