Project

General

Profile

Improvement #6634

Make it clear which attributes are required and which are optional

Added by Thomas Bleher 15 days ago. Updated 13 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
specification 1.5
Start date:
09.10.2017
Due date:
% Done:

0%


Description

Currently it's often unclear from the specification which attributes are required and which are optional.
As an example, take the tunnel record:
  • I think s and length should be mandatory
  • Most people would probably say that the id and the type should also be mandatory
  • name, lighting and daylight could probably be optional

However, there is no indication in the standard which of these elements are in fact mandatory.

The real problem is that in the XML Schema, all attributes are marked as optional (attributes are optional by default, and are only required if they have an attribute use="required" in the schema file). So the XML schema cannot be used to determine if all required attributes are there.

I propose the following:
For OpenDRIVE 1.5, all required attributes should be marked as such in the XML Schema file. That way, xodr files can be more easily checked for correctness.

History

#1 Updated by Marius Dupuis 13 days ago

  • Assignee changed from Marius Dupuis to Andreas Biehn

I'll assign this to my colleague who is doing the schema files.

Also available in: Atom PDF