Skip to content

Commit

Permalink
DSL update: type coercions (finos#2533)
Browse files Browse the repository at this point in the history
* Set DSL version

* Set bundle version

* Formatted

* Cleaned

* Cleaned

* Added release notes

* Fixed release notes

* Workaround for equality check

* Cleaned

* Updated release notes

* Update RELEASE.md

---------

Co-authored-by: Hugo Hills <[email protected]>
  • Loading branch information
SimonCockx and hugohills-regnosys authored Nov 24, 2023
1 parent 1b732bd commit 2c936c4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
17 changes: 17 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,20 @@ This release updates the FpML schema used for FpML to CDM ingestion. The version
_Review Directions_

This change has no impact on the model or test expectations. The changes can be reviewed in PR [2542](https://github.com/finos/common-domain-model/pull/2542).

# *Infrastructure - Dependency Update*

_What is being released?_

This release updates the `rosetta-dsl` dependency.

Version updates include:
- `rosetta-dsl` 9.1.0: this release fixes several code generation issues such as [when assigning a Rosetta int to a Rosetta number](https://github.com/REGnosys/rosetta-dsl/issues/579). For further details see DSL release notes: https://github.com/REGnosys/rosetta-dsl/releases/tag/9.1.0.

The issue brought to light a bug in the model having to do with the `CashPriceQuantityNoOfUnitsTriangulation` function, which has been resolved.

_Review directions_

Test expectations remain the same.

The changes can be reviewed in PR [#2533](https://github.com/finos/common-domain-model/pull/2533).
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@

<repoServerHost>oss.sonatype.org</repoServerHost>

<rosetta.bundle.version>9.1.0</rosetta.bundle.version>
<rosetta.bundle.version>9.2.0</rosetta.bundle.version>
<rosetta.code-gen.version>${rosetta.bundle.version}</rosetta.code-gen.version>
<rosetta.dsl.version>9.0.3</rosetta.dsl.version>
<rosetta.dsl.version>9.1.0</rosetta.dsl.version>

<xtext.version>2.27.0</xtext.version>
<opengamma.strata.version>1.7.0</opengamma.strata.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ func CashPriceQuantityNoOfUnitsTriangulation: <"Data rule to check the relations
extract value
then only-element

alias cashPrice: price -> value only-element
alias cashPrice:
price
filter priceType = PriceTypeEnum -> AssetPrice
then extract value
then only-element

set success:
if cashPrice exists and noOfUnits exists and notional exists
then cashPrice * noOfUnits = notional
else True

0 comments on commit 2c936c4

Please sign in to comment.