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: introduce messages and JSON-LD transformers for DCP issuer #551

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Feb 5, 2025

What this PR changes/adds

  • Introduces transformers for:

    • CredentialRequestMessage
    • IssuerMetadata
    • CredentialStatus
    • CredentialObject
  • Move all the issuer relates stuff under dcp-issuer subfolder in dcp protocol

  • Moves messages types under the dcp-issuer-spi module

Why it does that

Serde of issuance messages

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 #544

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

@@ -30,18 +29,18 @@
@Path("/v1alpha/requests")
public class CredentialRequestStatusApiController implements CredentialRequestStatusApi {

public CredentialRequestStatusApiController(TypeTransformerRegistry dcpRegistry) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'dcpRegistry' is never used.
@wolf4ood wolf4ood added the enhancement New feature or request label Feb 5, 2025
@wolf4ood wolf4ood self-assigned this Feb 5, 2025
@wolf4ood wolf4ood force-pushed the feat/544_dcp_issuance_messages branch 4 times, most recently from 21f00cf to 2fc5099 Compare February 5, 2025 12:57
@wolf4ood wolf4ood marked this pull request as ready for review February 5, 2025 13:27
""";
}

@Schema(name = "IssuerMetadata", example = IssuerMetadataSchema.RESPONSE_EXAMPLE)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should utilize the externalDoc functionality of OpenAPI to directly reference relevant parts of the DCP specification...
for a separate PR of course, but that would guarantee consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also remove the OpenApi docs and use directly the specification as we do for DSP

Copy link
Member

@paullatzelsperger paullatzelsperger Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm OK with either

@wolf4ood wolf4ood force-pushed the feat/544_dcp_issuance_messages branch from 2fc5099 to 9bc3cdb Compare February 6, 2025 14:13
@wolf4ood wolf4ood merged commit 02723ff into eclipse-edc:main Feb 6, 2025
17 checks passed
@wolf4ood wolf4ood deleted the feat/544_dcp_issuance_messages branch February 6, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement DCP issuer v1.0 messages and JSON-LD transformers
2 participants