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

Handle empty <Duration> #59

Merged
merged 1 commit into from
Dec 16, 2019
Merged

Handle empty <Duration> #59

merged 1 commit into from
Dec 16, 2019

Conversation

timdp
Copy link
Member

@timdp timdp commented Jun 5, 2019

We currently throw if a <Duration> element does not contain a valid time string.

This PR relaxes that into returning null, but the work is unfinished.

Given that <Duration> is a required element, an invalid duration string makes the VAST invalid, so throwing is still the correct behavior. However, we have limited support for "loose mode". We should still throw in strict mode.

@coveralls
Copy link

coveralls commented Jun 5, 2019

Coverage Status

Coverage increased (+0.02%) to 95.327% when pulling 3d03ba7 on handle-empty-duration into f87cb34 on master.

@timdp
Copy link
Member Author

timdp commented Dec 16, 2019

Postponing the work for strict mode and merging as-is.

@timdp timdp merged commit abf01e3 into master Dec 16, 2019
@timdp timdp deleted the handle-empty-duration branch December 16, 2019 09:19
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.

None yet

2 participants