DATEX-II-EU / DatexII

Main repository for issues and bugs for the DATEXII standard
0 stars 0 forks source link

FaultAndStatus reference from Status to Fault should be Reference not VersionedReference (Bugzilla Bug 489) #489

Open datexii opened 5 months ago

datexii commented 5 months ago

This issue was created automatically with bugzilla2github.py

Bugzilla Bug 489

Date: 2024-06-21T11:37:36+02:00 From: @iancornwellmottmac To: Bard de Vries <b.devries@u-trex.nl>

Last updated: 2024-06-21T11:37:36+02:00

datexii commented 5 months ago

Comment 1971

Date: 2024-06-21 11:37:36 +0200 From: @iancornwellmottmac

(This is an issue for Part 13 but today there is no issue tracker "Component" for Part 13.)

While writing documentation for Part 13 I noticed that the type of the attribute that links Status to Faults is VersionedReference, but the likely target DeviceFault is only D2Identifiable. So the reference attribute has an optional "version" property but the DeviceFault has no such property. The targetClass tag for the reference attribute is actually blank.

This isn't very serious - users should just not use the optional "version" property in the reference. We will include that guidance in documentation. In v4 we should point to DeviceFault as the target, and we should change the type to Reference.