Skip to content

Safe (Interaction Model) Updates #78

Description

@dennis-kuypers-gcx

I see that there is a potential problem with InteractionModel updates. The library will drop additional properties that it doesn't know about, right?

Scenario:

  • InteractionModel Get
  • during deserialization properties that don't have a matching property in the models are discarded
  • change InteractionModel object to include updated values
  • then I do InteractionModel Update

As a result all unknown properties are lost.


To keep additional properties the JsonExtensionDataAttribute (as i understand it) would solve this but that would require many changes and is probably prone to errors.

Currently I'm wrapping the ManagementApi so that I also have access to the authenticated http client to receive and send JToken to monkeypatch them manually.

(on a side note: I'm also using the ETag and If-Match to make sure that there are no race conditions)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions