You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Before making a contribution, please take the following steps:
8
8
1. Check whether there's already an open issue related to your proposed contribution. If there is, join the discussion and propose your contribution there.
9
9
2. If there isn't already a relevant issue, create one, describing your contribution and the problem you're trying to solve.
10
10
3. Respond to any questions or suggestions raised in the issue by other developers.
11
-
4. Fork the project repository and prepare your proposed contribution.
11
+
4. Fork the project repository and prepare your proposed contribution. The contribution must include unit tests to confirm that it behaves as expected.
12
12
5. Submit a pull request.
13
13
14
14
NOTE: All contributors must have a contributor license agreement (CLA) on file with FINOS before their pull requests will be merged. Please review the FINOS [contribution requirements](https://community.finos.org/docs/governance/Software-Projects/contribution-compliance-requirements) and submit (or have your employer submit) the required CLA before submitting a pull request.
Copy file name to clipboardExpand all lines: RELEASE.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,27 @@
2
2
3
3
_What is being released?_
4
4
5
-
This release adds support for meta data and for serialization / deserialization consistent with the [serialization specifications in CDM issue #3236](https://github.com/finos/common-domain-model/issues/3236)
5
+
This release adds support for metadata and for serialization / deserialization consistent with the [serialization specifications in CDM issue #3236](https://github.com/finos/common-domain-model/issues/3236)
6
6
7
-
Also included is support for circular dependencies and increased testing of operators.
7
+
Also included is support for:
8
8
9
-
# Reading From and Writing To a String
9
+
- circular Type definitions
10
+
- increased testing of operators
11
+
- generating Python across multiple namespaces
12
+
- Command line (CLI) generation of Python from a Rune source file or directory. To execute the CLI (assuming
13
+
the default process wherein the JAR is built in the target directory):
The generated Python code can deserialize and serialize an object.
12
22
13
-
## Deserializing from a string
23
+
###Deserializing from a string
14
24
15
-
To deserialize from a string and create a object of the model specified in the string invoke the function:
25
+
To deserialize from a string and create an object of the model specified in the string invoke the function:
16
26
17
27
`BaseDataClass.rune_deserialize` with the following parameters
18
28
@@ -27,9 +37,11 @@ To deserialize from a string and create a object of the model specified in the s
27
37
Returns:
28
38
BaseModel: The Rune model.
29
39
30
-
To serialize from an object ("[obj]") of a generated class, invoke the function:
40
+
### Serialize to a string
41
+
42
+
To serialize from a Rune object ("obj"), invoke the function:
31
43
32
-
`[obj].rune_serialize` with the following parameters:
44
+
`obj.rune_serialize` with the following parameters:
33
45
34
46
validate_model (bool, optional): Validate that the model passes all Rune defined constraings prior to serialization. Setting to False allows serialization of an invalid Model. Defaults to True.
35
47
@@ -59,7 +71,5 @@ To serialize from an object ("[obj]") of a generated class, invoke the function:
59
71
60
72
exclude_none (bool, optional): Determines whether to exclude fields that have a value of `None`. If True, fields set to None will be included. Defaults to False.
0 commit comments