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

Support implict Offer policy type for DSP messages #4118

Closed
jimmarino opened this issue Apr 17, 2024 · 0 comments · Fixed by #4143
Closed

Support implict Offer policy type for DSP messages #4118

jimmarino opened this issue Apr 17, 2024 · 0 comments · Fixed by #4143
Assignees
Labels
feature_request New feature request, awaiting triage triage all new issues awaiting classification
Milestone

Comments

@jimmarino
Copy link
Contributor

Feature Request

This is related to #4117.

JsonObjectToPolicyTransformer should support letting a parent transform set an implicit type. For example, it should not be required to specify @type in the following DSP message (as is customary with Json-Ld):

{
  "@context":  "https://w3id.org/dspace/v0.8/context.json",
  "@type": "dspace:ContractOfferMessage",
  "dspace:providerPid": "urn:uuid:a343fcbf-99fc-4ce8-8e9b-148c97605aab",
  "dspace:dataset": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88",
  "dspace:offer": {
    "@type": "odrl:Offer",
    "@id": "urn:uuid:d526561f-528e-4d5a-ae12-9a9dd9b7a518",
    "target": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88"
  },
  "dspace:callbackAddress": "https://......"
}
@jimmarino jimmarino added feature_request New feature request, awaiting triage triage all new issues awaiting classification labels Apr 17, 2024
@ndr-brt ndr-brt self-assigned this Apr 17, 2024
@ndr-brt ndr-brt added this to the Milestone 15 milestone Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature_request New feature request, awaiting triage triage all new issues awaiting classification
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants