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

Validator #4

Open
keunes opened this issue Nov 20, 2022 · 5 comments
Open

Validator #4

keunes opened this issue Nov 20, 2022 · 5 comments

Comments

@keunes
Copy link

keunes commented Nov 20, 2022

Hello,

Via your post in the upstream repo I came across yours. I like the (web-based) validator of the original creator as it helped me with build a way to dynamically generate an ICS file for a Jekyll site (AntennaPod/antennapod.github.io#192).

As new events get added to the site, I would love to have a way to have the validity/correctness of the ICS file checked automatically. Ideally through a GitHub action that we could run as test for each PR.

Would something like that be possible with this library? If so, I guess this is a 'feature request' (even though I realise this is in no way a feature of the PHP library). (I would fully understand if you close as won't fix.)

@phpfui
Copy link
Owner

phpfui commented Nov 21, 2022 via email

@keunes
Copy link
Author

keunes commented Nov 21, 2022

Thanks for the quick & positive reply! Unfortunately don't have the skills to write a validator - I barely get by with Jekyll/Liquid and some CSS :)

I'll see if I can think of some channels to ask if there might anyone be up to the challenge.

@phpfui
Copy link
Owner

phpfui commented Nov 21, 2022

You might want to contact Dan Cogliano at icalendar.org. I think he wrote the original PHP library and the current validator. I seem to remember that the validator was written in Java. If so, you might be able to convince him to make it open source. I think that would be a good resource. I did a similar project with the W3C HTML Validator. They also have a Java server to validate HTML. I use it in my https://github.com/phpfui/HTMLUnitTester project. Basically you run the Java server on your machine then use its API via PHP to validate against.

Good luck in your adventure. Let me know what you come up with, as I think it would be a good addition to this library.

@phpfui
Copy link
Owner

phpfui commented Nov 23, 2022

Found this validator written in Java. https://repo.or.cz/ical-validator.git/bundles Has not changed in 9 years, so no idea if it still works.

@keunes
Copy link
Author

keunes commented Nov 24, 2022

Has not changed in 9 years

Then if I'm not mistaken it doesn't support the RFC 7986 standard, which is from 2016.

You might want to contact Dan Cogliano at icalendar.org

I've sent a message through their website form. Not too hopeful about a reply tbh, but let's see. Otherwise I'll keep testing the calendar files manually :)

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

2 participants