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: RELEASE.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@ Also included is support for:
10
10
- increased testing of operators
11
11
- generating Python across multiple namespaces
12
12
13
-
# Reading From and Writing To a String
13
+
##Reading From and Writing To a String
14
14
15
15
The generated Python code can deserialize and serialize an object.
16
16
17
-
## Deserializing from a string
17
+
###Deserializing from a string
18
18
19
19
To deserialize from a string and create a object of the model specified in the string invoke the function:
20
20
@@ -31,9 +31,11 @@ To deserialize from a string and create a object of the model specified in the s
31
31
Returns:
32
32
BaseModel: The Rune model.
33
33
34
-
To serialize from an object ("[obj]") of a generated class, invoke the function:
34
+
### Serialize to a string
35
35
36
-
`[obj].rune_serialize` with the following parameters:
36
+
To serialize from a Rune object ("obj"), invoke the function:
37
+
38
+
`obj.rune_serialize` with the following parameters:
37
39
38
40
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.
39
41
@@ -63,7 +65,5 @@ To serialize from an object ("[obj]") of a generated class, invoke the function:
63
65
64
66
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