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

Problem with linting for document with undefined term #43

Open
fabianekc opened this issue Mar 31, 2023 · 0 comments
Open

Problem with linting for document with undefined term #43

fabianekc opened this issue Mar 31, 2023 · 0 comments

Comments

@fabianekc
Copy link

The following DID Document has undefined terms but passes linting:

Steps to reproduce: https://runkit.com/embed/8xg4vm8d3lj4

var jsonldLint = require("jsonld-lint")
await jsonldLint.lint('{"@context":["https://www.w3.org/ns/did/v1"],"id":"did:xxx:123","verificationMethod":[{"id":"did:xxx:123#key-1","controller":"did:xxx:123","type":"ED25519","publicKeyHex":"b0..."}],"authentication":["did:xxx:123#key-1"],"service":[{"type":"DIDDecrypt","id":"did:xxx:123#resolver","serviceEndpoint":"https://example.com","serverType":0,"protocol":2}],"alsoKnownAs":[{"id":"did:xxx:123","type":101}],"extension":{"attributes":[{"encrypt":1,"format":"text","value":"BID文档","key":"name","desc":"名称"}],"delegateSign":{"signatureValue":"03...","signer":"did:xxx:123#key-1"},"recovery":["did:xxx:123#key-2"],"ttl":86400,"type":102,"verifiableCredentials":[{"id":"did:xxx:123","type":"201"}]},"version":"1.0.0"}')

returns no errors

Using JSON-LD Playground errors are identified: link

expected behaviour: jsonld-lint should also report errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants
@fabianekc and others