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

Wrong type declarations in case of parameters #135

Open
CDaxi opened this issue Jul 18, 2021 · 0 comments
Open

Wrong type declarations in case of parameters #135

CDaxi opened this issue Jul 18, 2021 · 0 comments

Comments

@CDaxi
Copy link

CDaxi commented Jul 18, 2021

I have a calender with Parameters as sumamr, description and so on.
In this case, the event parameters are not strings, they are objects.

Ical URL:
https://abfuhrtermine.awp-paf.de/WasteManagementPfaffenhofen/WasteManagementServiceServlet?ApplicationName=Calendar&SubmitAction=sync&StandortID=149316001&AboID=185329&Fra=RM;B;P;S

Example vevent:

BEGIN:VEVENT
DTSTART;VALUE=DATE:20210721
DTEND;VALUE=DATE:20210722
TRANSP:TRANSPARENT
LOCATION;LANGUAGE=de:Joseph-Fraunhofer-Str. 10, 85276 Pfaffenhofen a.d.Ilm
UID:[email protected]
DTSTAMP:20210718T091751Z
DESCRIPTION;LANGUAGE=de:Bitte stellen Sie die Behälter bis 6:00 Uhr zur Abholung bereit.
SUMMARY;LANGUAGE=de:Restmuell 
PRIORITY:9
CLASS:PUBLIC
URL:www.awp-paf.de
STATUS:CONFIRMED
END:VEVENT

The ical.js creates at line 75 (https://github.com/jens-maus/node-ical/blob/master/ical.js#L75) the following object for example for summary:

{ params: { LANGUAGE: 'de' }, val: 'Restmuell ' }

This does not match with the type declaration string.

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

No branches or pull requests

1 participant