Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Refactor dsp messages validations into libs #4547

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Oct 14, 2024

What this PR changes/adds

Introduces dsp-*-validation-lib one for each dsp module.

Each validator can work on a provided schema, which by default for backward compatibility is DSPACE_SCHEMA (v0.8)

Relevant constants for this PR were refactor with the convention:

  • *_TERM : plain properties/types without namespace
  • *_IRI : properties/types with namespace (schema + *_TERM`)

This will impact other constants in future PRs as well

Why it does that

Multiple protocol versions support

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Linked Issue(s)

Closes #4537

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@wolf4ood wolf4ood changed the title Refactor dsp messages validations into libs refactor: Refactor dsp messages validations into libs Oct 14, 2024
@wolf4ood wolf4ood self-assigned this Oct 14, 2024
@wolf4ood wolf4ood added refactoring Cleaning up code and dependencies dataspace-protocol related to the dataspace protocol labels Oct 14, 2024
@wolf4ood wolf4ood force-pushed the refactor/4537_dsp_validation_lib branch from c11da46 to bd6d393 Compare October 14, 2024 12:54
@wolf4ood wolf4ood marked this pull request as ready for review October 14, 2024 14:35
@wolf4ood wolf4ood force-pushed the refactor/4537_dsp_validation_lib branch from e841c43 to e42ed80 Compare October 15, 2024 10:02
@wolf4ood wolf4ood merged commit 8cd7cc2 into eclipse-edc:main Oct 15, 2024
23 checks passed
@wolf4ood wolf4ood deleted the refactor/4537_dsp_validation_lib branch October 15, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dataspace-protocol related to the dataspace protocol refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract in libs dsp message validation logic
2 participants