voc / schedule

http://c3voc.de/wiki/schedule
14 stars 18 forks source link

Clarify duration spec #129

Open saerdnaer opened 9 months ago

saerdnaer commented 9 months ago

During Camp2023 we came across an Event which took longer than 24h (due to a user input validation error) which broke the Android app as it was not cleary specified if 1:00:00 is H:MM:SS aka 1h or D:HH:MM aka 1day = 24h.

https://github.com/EventFahrplan/EventFahrplan/pull/561

We could an a comment or validation to the XML + JSON schema to check for this issue. Normally the content of the duration field is ony HH:MM eh 1:15 for a 75 minute session

https://github.com/voc/schedule/blob/e3bd7dfd7c827655eb4fa77188723743af132e63/validator/json/schema.json#L397-L402

https://github.com/voc/schedule/blob/e3bd7dfd7c827655eb4fa77188723743af132e63/validator/xsd/schedule.xml.xsd#L109-L113

image