charinev / opnc

CharIN Open Plug&Charge Protocol (OPNC)
Creative Commons Attribution Share Alike 4.0 International
18 stars 8 forks source link

emaidParam.v1.json - change max size to 18 #33

Closed guillaumeFRANCOIS closed 10 months ago

steffenrhinow commented 1 year ago

The description is missing that separators will be normalized by the system due to ISO restrictions. Please add before just extending the string

MKeCharIN commented 1 year ago

Extension the string to 36 characters suggested. To be checked till next meeting and additional pull request to be created.

MKeCharIN commented 11 months ago

size of 36 characters is agreed. Additional pull request to be done.

guillaumeFRANCOIS commented 11 months ago

Modification done. Also i changed the pattern because if we want to accept the OCPI contract_id as a potential input for the emaid it is then 36 char long of type ASCII (see https://github.com/ocpi/ocpi/blob/master/mod_cdrs.asciidoc#145-cdrtoken-class)

MKeCharIN commented 10 months ago

Be mire specific and define the format like "^[A-Za-z]{2}[-]?\w{3}[-]?\w{9,31}[-]?(\w{1})?$"" Update by Guillaume