You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I wanted to check if it's possible to access info in the expansionMap in compact when there are no unmapped properties?
To provide some context: I'm currently working on a W3C Verifiable Credentials-related project and in one of our validations, we had to check for every value in type as shown below, whether it can be mapped to any of the @contexts.
The catch here is that we found out that expansionMap only shows up when there are unmapped properties, but not values. For example, only in the case below then we can access expansionMap assuming that someRandomProperty cannot be mapped to any of the @contexts.
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://link.to/our/DrivingLicenceCredentialContext.jsonld"
],
"type": ["VerifiableCredential", "DrivingLicenceCredential"],
"someRandomProperty": "not found in any of the contexts above"
...
// Removed for brevity
}
So... is there an alternative way for us to access activeCtx.mappings that's found in info in this case?
The text was updated successfully, but these errors were encountered:
So, currently, the answer is no. But this is an interesting feature request as this issue has come to bite multiple people in the VC community. We may want the unmapped API to get triggered when a base URI is not set and an undefined base-relative value is found (and perhaps we should also add a flag to forcibly call the API even if a base URI is set in this case).
This should be looked into when implementing a fix for #199.
PRs welcome. @davidlehn - do you know of any workarounds for this at the moment?
Hello! I wanted to check if it's possible to access
info
in theexpansionMap
incompact
when there are no unmapped properties?To provide some context: I'm currently working on a W3C Verifiable Credentials-related project and in one of our validations, we had to check for every value in
type
as shown below, whether it can be mapped to any of the@context
s.The catch here is that we found out that
expansionMap
only shows up when there are unmapped properties, but not values. For example, only in the case below then we can accessexpansionMap
assuming thatsomeRandomProperty
cannot be mapped to any of the@context
s.So... is there an alternative way for us to access
activeCtx.mappings
that's found ininfo
in this case?The text was updated successfully, but these errors were encountered: