OcpiLocation object - 2.1.1 properties (validation missing) #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @YuriyDurov,
I've added the 2.1.1 properties to the OcpiLocation object.
I guess you would like to add validation to the new properties:
Validation that properties with different names on the 2 versions aren't both populated - for example, only one of max_amperage, amperage is populated.
Validation of the string property's sizes according to version - for example the size of "id" property in 2.1.1 is string(39) and on 2.2.1 is string(36).
Validation of enum values - some of the 2.1.1 enum types include less entries then on their 2.2.1 version.
I'm not familiar with the library validation infrastructure, so it was hard for me to conclude on how to do these validations - can you assist with that?
Thanks,
Lior