-
Notifications
You must be signed in to change notification settings - Fork 13
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
imoClass Regex maybe incorrect? #153
Comments
Indeed - I think I recall having seen single-digit IMO classes. |
Hi @cmsdroff , |
Thanks @raisoman and @HenrikHL and understood about the use of regex for minor versions, to support the case I've taken a example snapshot from the DG Note that is used when booking / sending SI to carriers see below, the
again after the Looked across a couple of large shippers DG notes and it's consistent between them currently, hope its useful. |
Hi @cmsdroff, I will probably revert from a regEx to an Enum as I am also told the following: |
great news thanks for the speedy update @HenrikHL :) Will leave to you if you want to close or link to commit |
Hi @cmsdroff |
I did make a regular expression: |
Hi,
For the
imoClass
noted here https://app.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/3.1.0#/components/schemas/imoClass (apologies can't find in Github)I'm not sure if the
imoClass
should enforce the.x
part of the value, we very often see the IMO class being passed as value9
(miscellaneous) in movements and DG Notes which fails the regex specified in the class below, whilst class 9 (and others) can be split to a.x
value it is not always that common looking at the DG Notes, and also the placard's used to identify the hazard.So I'm questioning if it should be allowed to use just
9
or will it be enforced to use9.1
or9.2
also if this should be an enum to identify only specific and valid classes as you cannot have
9.6
for example?We have had to override and remove the
pattern
from the schema to start using the DCSA schemas in the project, and left an open ticket relating to this one, welcome your thoughts.The text was updated successfully, but these errors were encountered: