-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add additional fields for parking lots #216
Conversation
One obvious problem is that the lot_type would have to be changed for all of the current parsers and perhaps the clients use the current values. |
I like the new |
Would it not make sense to have a separate endpoint for v2 of the API? This would of course mean a bit of refactoring. |
This would however allow us to change the times to use proper ISO 8601 with an offset ( |
Yes this makes sense and there's already #140 to address this issue. The documentation you want to change however addresses the current version (but it isn't up to date tbh). I don't want to mix the outdated version 1 documentation with features for a (yet undefined) version 2 API. Calling it 1.1 would also imply backwards compatibility. |
I am very much against adding something like Let's create a new spec instead of modifying the old (and as @jklmnn stated outdated) one. Maybe even move that into its own repo to version it apart from the crawler/API? |
I agree that we should not add a I'd suggest to remove lot_type from this PR and add the backward compatible new attributes |
This would work for me. |
5bbb925
to
2a1a1bb
Compare
I have amended this PR to remove the field lot_type from the schema. It will remain unspecified. However I'm seeing a problem on Travis, which appears to be happening when the Python requirements are installed: https://travis-ci.com/github/mfdz/ParkAPI/jobs/366048314 Do you have an idea what the issue is? |
This is going to be fixed in #217. Please rebase your branch onto the new master once it is merged. |
2a1a1bb
to
205bc01
Compare
I've rebased and CI is green. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
In #175 we discussed adding more fields to the parking lot schema.
This is my first attempt to do this but I acknowledge that this doesn't completely match with the list @kiliankoe provided.
This PR is just the first attempt and I'm happy to rework it as needed. Lets discuss!