ossuminc / riddl

A compiler for the DDD-based design language RIDDL
https://riddl.tech/
Apache License 2.0
19 stars 6 forks source link

Reference Not Validated #592

Closed reid-spencer closed 3 months ago

reid-spencer commented 3 months ago

It is possible to use an outlet reference where the referent is not an outlet. For example, using this:

send event ProductActivated to outlet ProductEventsSource

instead of this:

send event ProductActivated to outlet ProductEventsSource.Events

The former should produce a validation error, while the latter should not, when the definition is:

source ProductEventsSource is {
    outlet Events is type ProductEvent
}
reid-spencer commented 3 months ago

It turns out this was caused by using an old version of the riddlc compiler.