RA-Consulting-GmbH / openscenario.api.test

Apache License 2.0
38 stars 11 forks source link

Validation of unsignedInt insufficent (Example: ManeuverGroup::maximumExecutionCount) #198

Open reneparis opened 1 year ago

reneparis commented 1 year ago

Describe the bug

The attribute maximumExecutionCount of the element ManeuverGroup (https://www.asam.net/static_downloads/ASAM_OpenSCENARIO_V1.1.1_Model_Documentation/modelDocumentation/content/ManeuverGroup.html) is an unsignedInt with range [1...inf[.

There is no possibility to specifiy infinite at all. "INF" or "inf" or "-1" always leads to a validation error. I understand that this is a restriction of the datatype itself. So our users started to use "other ways" to make it clear, that we wanna have infinite execution.

Unfortunately, even if the user typed some unparseable strings starting with an alphanumeric character, parsing silently continued and used the wrong numbers.

To Reproduce

Try to validate a scenario file with the following configuration:

Expected behavior

Desktop (please complete the following information):

ahege commented 10 months ago

Thank you for your ticket. We will investigate the bug as soon as we can. We are planning a bugfix release for October.