Load Aspect Models and their artifacts as Java code; share components to realize SAMM as code
Mozilla Public License 2.0
25
stars
12
forks
source link
[BUG] Invalidly modelled TimeSeries passes validation (BAMM v1 and BAMM v2) #194
Closed
LukasHeimann closed 1 year ago
Describe the bug In BAMM v1, there is a specific way in which time series data must be modelled: https://openmanufacturingplatform.github.io/sds-bamm-aspect-meta-model/bamm-specification/v1.0.0/modeling-guidelines.html#declaring-time-series
However, an invalid time series definition can still pass validation:
Where
bamm aspect Test.ttl validate
Additional Context: I am using BAMM CLI v2.0.1.
This bug is also valid for v2's TimeSeries modelling as described here: https://openmanufacturingplatform.github.io/sds-bamm-aspect-meta-model/bamm-specification/2.0.0/modeling-guidelines.html#declaring-time-series.
bamm aspect Test.ttl migrate
doesn't do a good job of updating time series modelling to the latest version, unfortunately, but this freshly created minimal example passes as well, even though it should only do so with the commented out line properly in pace: