Skip to content

Several fixes for OLink JSON encoding and property behavior#10

Merged
w4bremer merged 5 commits into
mainfrom
fix/severalUpdatesForOLinkAndAPI
Jun 1, 2023
Merged

Several fixes for OLink JSON encoding and property behavior#10
w4bremer merged 5 commits into
mainfrom
fix/severalUpdatesForOLinkAndAPI

Conversation

@w4bremer
Copy link
Copy Markdown
Contributor

@w4bremer w4bremer commented Jun 1, 2023

  • updated to latest v0.28.1 cli version for updated python default filter -> Struct1() instead of {} for default
  • enforce json encoding by alias name which is the IDL version instead of the python naming style
  • added tests for properties

📑 Description

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

w4bremer added 5 commits May 31, 2023 17:32
If the value of a property is changed using the set method, we
automatically notify all listeners about that change.
The alias name was not used by the json.dumps() method and thus used
the variable name which is different than the one specified in the IDL.
Therefore we now enforce using the alias as it is defined in the IDL.
The new cli version contains the updated default filter for structs.
Therefore, we need to update the goldenmaster to reflect these changes.
We need to initialize structs in the default constructor to use proper
values during the json serialization.
@w4bremer w4bremer merged commit 22cfa70 into main Jun 1, 2023
@w4bremer w4bremer deleted the fix/severalUpdatesForOLinkAndAPI branch June 1, 2023 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant