Closed gaborigloi closed 6 years ago
I've tested it on some code that was previously failing, and now it works with these changes. I wasn't sure whether to include the generated OASIS changes.
Basically this is equivalent to this change: https://github.com/xapi-project/xapi-storage/pull/79/files#diff-9aff33d7c53066ba28c1262c277b9cd6R49 in https://github.com/xapi-project/xapi-storage/pull/79
Previously the generated python code failed in the typechecking Python code when an optional field wasn't present in the Python dictionary. Now we only typecheck the optional field if it is actually there in the dict.
Signed-off-by: Gabor Igloi gabor.igloi@citrix.com