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: jsonld asset #85

Merged
merged 1 commit into from
Sep 4, 2023
Merged

refactor: jsonld asset #85

merged 1 commit into from
Sep 4, 2023

Conversation

ndr-brt
Copy link
Contributor

@ndr-brt ndr-brt commented Sep 1, 2023

Description

Adapt AssetController to json-ld, plus some cleanup

Closes #84

@ndr-brt ndr-brt force-pushed the 84-jsonld-asset branch 2 times, most recently from fa1a10d to 999e97d Compare September 1, 2023 12:46
@ndr-brt ndr-brt marked this pull request as ready for review September 4, 2023 07:10
@@ -19,25 +19,6 @@ export interface HttpDataAddress extends BaseDataAddress {
contentType?: string;
}

export interface S3StorageDataAddress extends BaseDataAddress {
Copy link
Member

Choose a reason for hiding this comment

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

How come are we removing these specialised data addresses?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The client should be general-purpose and not leverage on additional extensions, in fact the S3 and blobstorage extensions had been moved out of the EDC core repository (currently they are not maintained by the EDC committer group), a DataAddress is a free-form object, it's up to the implementors to built it in the correct way.
HttpDataAddress is in fact part of the core codebase so it's ok to have it pre-defined (I was uncertain if delete that as well tbh).
This is stuff that could be part of the "extensions" that we discussed about.

Copy link
Member

Choose a reason for hiding this comment

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

This makes total sense! Thank you, Andrea. Looks good to me

@ndr-brt ndr-brt requested a review from fdionisi September 4, 2023 09:26
@ndr-brt ndr-brt merged commit 91d0a80 into main Sep 4, 2023
@Nazdroth Nazdroth deleted the 84-jsonld-asset branch November 17, 2023 16:48
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.

Make AssetController return json-ld Asset and not AssetResponse
2 participants