Skip to content

feat: dsp constants refactor #5060

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Jun 20, 2025

What this PR changes/adds

Removes protocol specific constants from DspConstants, HttpMessageProtocol and DspVersions by moving those constants in each protocol specific place

  • Dsp08Constants in dsp-spi-08
  • Dsp2024Constants in dsp-spi-2024
  • Dsp2025Constants in dsp-spi-2025

In order to remove direct dependency with the ProtocolVersion V_08 from DspProtocolParserImpl the ProtocolVersionRegistry now when registering a version accept a boolean that indicates if the protocol should be considered as default. And also a getDefault method has been added.

The default protocol it's only needed for backward compatibility where the protocol field contains only dataspace-protocol-http without a version and currently it's set for v0.8.

This will likely be revisited once the implementation for #5007
starts

Why it does that

Briefly state why the change was necessary.

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.

Who will sponsor this feature?

Please @-mention the committer that will sponsor your feature.

Linked Issue(s)

Closes #5059

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

@wolf4ood wolf4ood added enhancement New feature or request refactoring Cleaning up code and dependencies labels Jun 20, 2025
@wolf4ood wolf4ood self-assigned this Jun 20, 2025
@wolf4ood wolf4ood force-pushed the feat/5059_dsp_constants_refactor branch from c470b60 to 501f7d4 Compare June 23, 2025 09:51
@wolf4ood wolf4ood marked this pull request as ready for review June 23, 2025 14:04
@wolf4ood wolf4ood requested a review from jimmarino June 23, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dsp constants protocols refactor
2 participants