Skip to content

Commit

Permalink
[6.0.0-dev.x] BUG-572: DSL - handling null values in expressions (fin…
Browse files Browse the repository at this point in the history
…os#2731)

* Update DSL version to 9.6.1

* Update release note

* Update func
  • Loading branch information
hugohills-regnosys authored Feb 26, 2024
1 parent 290c888 commit b2f65be
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
5 changes: 3 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ The changes can be reviewed in PR: https://github.com/finos/common-domain-model/

_What is being released?_

This release updates the `rosetta-bundle` dependencies.
This release updates the `rosetta-bundle` and `rosetta-dsl` dependencies.

Version updates include:
- `rosetta-bundle` 10.13.4: FpML Coding schema updated.
- `rosetta-dsl` 9.6.1: DSL bug fix for handing null values. For further details see DSL release notes: https://github.com/REGnosys/rosetta-dsl/releases/tag/9.6.1.

There are no changes to the model or test expectations.

_Review directions_

The changes can be reviewed in PR: https://github.com/finos/common-domain-model/pull/2707
The changes can be reviewed in PR: [#2707](https://github.com/finos/common-domain-model/pull/2707) / [#2731](https://github.com/finos/common-domain-model/pull/2731)
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>10.13.4</rosetta.bundle.version>
<rosetta.bundle.version>10.13.5</rosetta.bundle.version>
<rosetta.code-gen.version>${rosetta.bundle.version}</rosetta.code-gen.version>
<rosetta.dsl.version>9.6.0</rosetta.dsl.version>
<rosetta.dsl.version>9.6.1</rosetta.dsl.version>

<xtext.version>2.27.0</xtext.version>
<opengamma.strata.version>1.7.0</opengamma.strata.version>
Expand Down
6 changes: 6 additions & 0 deletions rosetta-source/src/main/resources/rosetta-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
model:
name: Common Domain Model
dependencies:
generators:
namespaces:
- cdm.*
11 changes: 5 additions & 6 deletions rosetta-source/src/main/rosetta/base-datetime-func.rosetta
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ func ToDateTime: <"Creates a ZonedDateTime from the provided Date, and defaults
zonedDateTime zonedDateTime (0..1)

set zonedDateTime:
if date exists
then zonedDateTime {
date: date,
time: ToTime(0, 0, 0),
timezone: "Z" // UTC
}
zonedDateTime {
date: date,
time: ToTime(0, 0, 0),
timezone: "Z" // UTC
}

func ToTime: <"Implemented by Java function.">
inputs:
Expand Down

0 comments on commit b2f65be

Please sign in to comment.