Open otterdahl opened 2 months ago
The validator doesn't catch this issue. Perhaps the test case can be extended
The limit is specified in out yaml source at: https://github.com/rsmp-nordic/rsmp_schema/blob/main/schemas/tlc/1.2.1/sxl.yaml#L1017
However, it's not currently used when we convert the yaml to this JSON schema: https://github.com/rsmp-nordic/rsmp_schema/blob/main/schemas/tlc/1.2.1/statuses/S0207.json#L65
The reason is that values are send as strings, making validation overly complex with json schema, see: https://github.com/rsmp-nordic/rsmp_schema/issues/94
I think it would be best to catch this in the schema validation, rather than adding code to the validator tests - let's catch issues as soon as possible, we already have the limit defined in the sxl yaml.
In recent runs, the ITC-3 reports S0207 occupancy with very large values. However, according to the specification S0207 "occupancy" needs to be between 0 and 100.