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

BPN Group API example leads to group resolution failure #1626

Open
rafaelmag110 opened this issue Oct 14, 2024 · 0 comments
Open

BPN Group API example leads to group resolution failure #1626

rafaelmag110 opened this issue Oct 14, 2024 · 0 comments
Labels
bug Something isn't working triage all new issues awaiting classification

Comments

@rafaelmag110
Copy link
Contributor

Describe the bug

This might seem like a nit, but when users check the API spec to understand how to use the BPN Group API, they see the following example:

{
"@context": {
"tx": "https://w3id.org/tractusx/v0.0.1/ns/"
},
"@id": "tx:BPN000001234",
"tx:groups": ["group1", "group2", "group3"]
}
""";

Having the @id attribute prefixed with the tractusx context tx will lead to errors when the BPNL is resolved from the store for policy evaluation. In that case, the BPNL value is resolved from a token and doesn't contain the tx context.

To Reproduce

Save a BPN Group as shown in the documentation.
Try to resolve the BPN group using the API.

Context Information

Present since the BPN Group API was introduced.

Possible Implementation

Remove the tx context from the @id attribute from the API example.

@rafaelmag110 rafaelmag110 added bug Something isn't working triage all new issues awaiting classification labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage all new issues awaiting classification
Projects
None yet
Development

No branches or pull requests

1 participant