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

feat: dsp transfer process validation #3378

Merged

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Aug 21, 2023

What this PR changes/adds

Validate DSP transfer endpoints with JsonObjectValidator

Why it does that

consistency

Further notes

  • extracted a DspRequestHandler component, that takes care of all the DSP controllers logic, it's enough to build a DspRequest object (Get or Post) and pass to the correct method (getResource, createResource, updateResource). This removed a lot of duplicated code and logic.
  • there's still some unclear inheritance structure around ProcessRemoteMessage (why is the setProtocol on that interface and not on its superinterface?) that will likely be improved within the upcoming "dsp completion" issues.

Linked Issue(s)

Closes #2936

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

@ndr-brt ndr-brt added enhancement New feature or request dataspace-protocol related to the dataspace protocol labels Aug 21, 2023
@ndr-brt ndr-brt force-pushed the 2936-dsp-transfer-process-validation branch from 89b5644 to c81441b Compare August 21, 2023 13:10
@ndr-brt ndr-brt merged commit 2298aff into eclipse-edc:main Aug 28, 2023
18 checks passed
@ndr-brt ndr-brt deleted the 2936-dsp-transfer-process-validation branch August 28, 2023 08:35
ndkrimbacher pushed a commit to nexyo-io/DataSpaceConnector that referenced this pull request Oct 4, 2023
* extract component to handle dsp requests logic

* Implement validators

* update dependencies

* Avoid duplication
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 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement JSON-LD validation on protocol endpoints (=controllers)
2 participants