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

Strict OCPP 2.0.1 date-time conformity and validation #499

Open
Jared-Newell-Mobility opened this issue Oct 24, 2023 · 2 comments
Open

Strict OCPP 2.0.1 date-time conformity and validation #499

Jared-Newell-Mobility opened this issue Oct 24, 2023 · 2 comments
Labels
enhancement New feature or request stale

Comments

@Jared-Newell-Mobility
Copy link
Contributor

OCPP 2.0.1 - Part 2 - Section 2.1.4 Primitive Datatypes

"All time values exchanged between CSMS and Charging Station SHALL be formatted as
defined in [RFC3339]. Additionally fractional seconds have been given an extra limit. The
number of decimal places SHALL NOT exceed the maximum of 3.
Example 1: 2019-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd
hour of April 12th, 2019 in UTC.
Example 2: 2019-12-19T16:39:57+01:00 represents 39 minutes and 57 seconds after the 16th
hour of December 19th, 2019 with an offset of +01:00 from UTC (Central European Time)"

I think we've to roll our own validation. That should be possible according to the json-schema's docs::

To add a check for a custom format use the FormatChecker.checks decorator.

In addition, all date-time formatting in the library should confirm to the above

@Jared-Newell-Mobility
Copy link
Contributor Author

original discussion - #216

Copy link

github-actions bot commented Dec 9, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Development

No branches or pull requests

1 participant