Replies: 11 comments
-
I think a separate checker would be a better idea. It could be a part of icalendar, or separate. |
Beta Was this translation helpful? Give feedback.
-
That might work for reading, but for writing icalendar needs to be able to raise Exceptions when all required fields are not given. |
Beta Was this translation helpful? Give feedback.
-
What is the reason you can't just call a verification method before writing? |
Beta Was this translation helpful? Give feedback.
-
I wasn't even aware of a verification method. I tried looking for it in docs and source now, but still can't find it. Where is it? |
Beta Was this translation helpful? Give feedback.
-
There isn't one. Which is why I said "a" and not "the" verification method. |
Beta Was this translation helpful? Give feedback.
-
Yes, anything that could make it certain that the files are valid according to spec (and thus at least hope for some interoperability). |
Beta Was this translation helpful? Give feedback.
-
@tpievila i would agree with @regebro to have checker/verification/validation method, just because it leaves implementing "strict" mode to users of library. but this is definetly something we should consider in next release (3.1) |
Beta Was this translation helpful? Give feedback.
-
oh and would be nice if somebody could champion this, since i'm not sure i'll have the time and enough free time in next months to be motivated to implement this (i just don't have a use-case for this so motivation for it is low). |
Beta Was this translation helpful? Give feedback.
-
Is there a place where strict mode is defined? My exported cal isn't google compat and I'm not sure why. |
Beta Was this translation helpful? Give feedback.
-
yes, RFC 5545 |
Beta Was this translation helpful? Give feedback.
-
This is also related to #536 |
Beta Was this translation helpful? Give feedback.
-
Currently icalendar happily reads and writes data without all the fields required by the RFC. There should be a strict mode available, that does error checking.
Beta Was this translation helpful? Give feedback.
All reactions