-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Description
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.
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://link.to/our/DrivingLicenceCredentialContext.jsonld"
],
"type": ["VerifiableCredential", "DrivingLicenceCredential"],
...
// Removed for brevity
}
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels