-
Notifications
You must be signed in to change notification settings - Fork 232
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
Policy API early expiration #680
Comments
We're currently using
-- EDIT -- Wrapped the numbers in backticks to avoid linking to PRs/issues automagically 😅 |
@avatarneil Thanks! We recommend It would be nice if we can add an example for the same to policy examples. |
@schnuerle Can we update the document to state policies are immutable and add specific examples showing the early end of policies? We have encountered a few cases from cities and 3rd parties where they have ended the policies early by changing the dates. |
Ok so for MDS 2.0 we can look at clarifying that policies are immutable, and adding more language to the spec about that. It's mentioned 3 times on the policy page, but maybe a new section about 'Updating or Ending Policies' that could be linked to is in order. Also adding an example with how to properly end or update a policy. |
But currently the JSON schema of policies seem to explicitly forbidden a policy with empty rules: mobility-data-specification/policy/policy.json Lines 67 to 76 in 2670581
(which was added in https://github.com/openmobilityfoundation/mobility-data-specification/pull/576/files#diff-c3c8c9c2d57f7519fe41d13c5b30d143c5e5e69fa3beb2f56a7cbdf5390c7a26R75 ) even though https://github.com/openmobilityfoundation/mobility-data-specification/blob/main/policy/README.md does not mention anything about this limitation. Is the JSON schema wrong and should "minItems": 1 be removed ?
|
@xavfernandez Oof, good catch. I think that the JSONSchema is wrong here, the |
This Will be adding a new section called 'Updating or Ending Policies' with new language, and adding an example to policy examples page. |
See #680 for the new section and language to clarify "Updating or Ending Policies". Leave feedback here or in the PR. I don't think an example is needed for this based on the clarified text. Examples also went through a lengthy review to ensure they matched real world common use cases. However, if anyone would like to propose an example, suggest it with specifics here and we could add it now, or in the next release with more review. |
Continue to leave comments here and if needed we can make tweaks during release review process. |
A city operation defines a policy with a start and end date. Example: They define a no operating zone due to planned work going on the streets, for 2 days. The work gets finished earlier and now the city operator would like to revoke the policy so that vehicles are allowed. Currently, the policies are immutable as per the specification.
Describe the solution you'd like
Currently, we are recommending 2 to the city operators but wanted to get suggestions as to how others who have encountered similar use cases are handling it.
Impacted Spec
For which spec is this feature being requested?
policy
The text was updated successfully, but these errors were encountered: