You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for making this software, I found a minor thing that's potentially a bit annoying because it prevents me from using custom values.
I can of course always work around it by putting it into the summary or something, as text, but that's obviously not ideal.
The official validator didn't mind me putting in seemingly arbitrary values. I'm not sure if that's intentional.
Describe the bug
The .calendar_from_ics and the Todo object constructor (?) don't accept my arbitrary classification "HERPADERPA" as a possible / valid value for classification. But the official validator, does.
It doesn't look like you allow the IANA and X-types.
value is not a valid enumeration member; permitted: 'PUBLIC', 'PRIVATE', 'CONFIDENTIAL' (type=type_error.enum; enum_values=[<Classification.PUBLIC: 'PUBLIC'>, <Classification.PRIVATE: 'PRIVATE'>, <Classification.CONFIDENTIAL: 'CONFIDENTIAL'>])
I'm not actually sure how the "X-" values are supposed to be defined. But the official validator didn't complain.
To Reproduce
Go to the validtor, plug it in and observe the result.
alternatively, run this code, observe that it fails.
fromical.calendarimportCalendarfromical.calendar_streamimportIcsCalendarStreams="""BEGIN:VCALENDARPRODID:-//github.com/allenporter/ical//8.2.0//ENVERSION:2.0BEGIN:VTODOUID:[email protected]DTSTAMP:20250313T123432ZDUE;VALUE=DATE:20070501SUMMARY:Submit Quebec Income Tax Return for 2006CLASS:CONFIDENTIAL,X-HERPA;VALUE=foo:barCATEGORIES:FAMILY,FINANCEX-HER-PADERPA:foobarSTATUS:NEEDS-ACTIONEND:VTODOEND:VCALENDAR"""calendar=IcsCalendarStream.calendar_from_ics(s)
Expected behavior
no crash
safe defaults like "private" as specified in the standard
maybe a warning?
Environment
OS: ubuntu 22.04
Python version: Python 3.10.12
The text was updated successfully, but these errors were encountered:
Hello everyone!
Thanks for making this software, I found a minor thing that's potentially a bit annoying because it prevents me from using custom values.
I can of course always work around it by putting it into the summary or something, as text, but that's obviously not ideal.
The official validator didn't mind me putting in seemingly arbitrary values. I'm not sure if that's intentional.
Describe the bug
The
.calendar_from_ics
and theTodo
object constructor (?) don't accept my arbitrary classification "HERPADERPA" as a possible / valid value for classification. But the official validator, does.https://icalendar.org/iCalendar-RFC-5545/3-8-1-3-classification.html
It doesn't look like you allow the IANA and X-types.
I'm not actually sure how the "X-" values are supposed to be defined. But the official validator didn't complain.
To Reproduce
Go to the validtor, plug it in and observe the result.
https://icalendar.org/validator.html
alternatively, run this code, observe that it fails.
Expected behavior
Environment
The text was updated successfully, but these errors were encountered: