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

Small schema fixes #97

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Small schema fixes #97

merged 1 commit into from
Sep 9, 2024

Conversation

b-wils
Copy link
Contributor

@b-wils b-wils commented Sep 6, 2024

  1. Remove st as required field on layer. This field was removed in Add some docs for layer time start and stretch #53
  2. Remove min/max on some gradient scalar properties. Scalar properties are objects and the values are in k, so min/max doesn't apply at that level. We would need to reach deeper into the object to properly apply limits.

These were discovered using full strict mode on ajv. We may want to turn this on in our tests, however I was having some issues with cases where the property definition and required were split between if/then/allof etc.

1. Remove `st` as required field on layer. This field was removed in
lottie#53
2. Remove min/max on some gradient scalar properties. Scalar properties
are objects and the values are in `k`, so min/max doesn't apply at that
level. We would need to reach deeper into the object to properly apply
limits.

These were discovered using full strict mode on ajv. We may want to turn
this on in our tests, however I was having some issues with cases where
the property definition and required were split between if/then/allof
etc.
@b-wils
Copy link
Contributor Author

b-wils commented Sep 6, 2024

Hopefully this should be fine to take during freeze as it is minor polishing, but let me know if there are any concerns.

},
"a": {
"title": "Highlight Angle",
"description": "Highlight Angle in clockwise degrees, relative to the direction from `s` to `e`",
"$ref": "#/$defs/properties/scalar-property",
"minimum": 0,
"maximum": 360
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally min/max range should be documented but I don't think either of these properties need to be clamped anyway

@mbasaglia
Copy link
Member

Hopefully this should be fine to take during freeze as it is minor polishing, but let me know if there are any concerns.

IMO it's fine

@b-wils b-wils merged commit f330f66 into lottie:main Sep 9, 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.

3 participants