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

Disallow negative values on some top-level properties #70

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

mbasaglia
Copy link
Member

Ensures width/height/framerate are non negative.

Perhaps fr should be strictly positive but I didn't want to enforce a minimum framerate (having a framerate of something like 0.5 would be unusual but it still makes sense)

@mbasaglia
Copy link
Member Author

I just realized JSON schema has exclusiveMinimum that does the job

@mbasaglia mbasaglia merged commit ca878f2 into lottie:main Aug 2, 2024
3 checks passed
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.

4 participants