finos / rune-dsl

The project containing the Rune DSL grammar and default code generators
Apache License 2.0
27 stars 30 forks source link

Caching sometimes breaks change propagation #785

Closed SimonCockx closed 2 months ago

SimonCockx commented 4 months ago

Repro:

namespace foo

import bar.*

body Authority Body

corpus Regulations Corpus 

report Body Corpus in T+2
    from Event
    when Eligible
    with type Report

eligibility rule Eligible from Event:
    item

reporting rule Thing from Event:
    ""
namespace foo

type Report:
    thing string (1..1)
        [ruleReference Thing]
namespace bar

type Event:
  1. Observe that it validates fine.
  2. Change the name of Event to Even, and observe that it breaks (as expected).
  3. Change the name of Even back to Event, and observe that one validation error persists on the report.