Skip to content

refactor: change dpp to be based on platform value - #809

Merged
QuantumExplorer merged 251 commits into
v0.24-devfrom
refactor/removeDocumentStub
Mar 22, 2023
Merged

refactor: change dpp to be based on platform value#809
QuantumExplorer merged 251 commits into
v0.24-devfrom
refactor/removeDocumentStub

Conversation

@QuantumExplorer

@QuantumExplorer QuantumExplorer commented Feb 25, 2023

Copy link
Copy Markdown
Member

Issue being fixed or feature implemented

A fundamental way how DPP used to work was that it was based on serde-json values that we often call JsonValue. This value system is not ideal for validation because it isn't very type rich. On top of that a lot of boilerplate code had to be used to get very simple functionality. Validation would require modifying the value between array buffers and bytes, and often by doing so data would be lost.

What was done?

We replaced the serde-json Value system with a new better typed platform-value system.

How Has This Been Tested?

All tests are passing, a lot more have been added.

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

qrayven
qrayven previously approved these changes Feb 27, 2023
@QuantumExplorer
QuantumExplorer marked this pull request as ready for review March 21, 2023 20:10
@QuantumExplorer
QuantumExplorer merged commit fb7d908 into v0.24-dev Mar 22, 2023
@QuantumExplorer
QuantumExplorer deleted the refactor/removeDocumentStub branch March 22, 2023 09: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.

6 participants