-
Notifications
You must be signed in to change notification settings - Fork 78
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 JSON-LD @context and (possibly) jsonschema in CLI #151
Comments
+1 this idea. There are several places where we load/dereference documents or resources from URLs. I'm not sure if there are are uses that would require one kind loaded via this way but not another. It could be useful for testing/developing # passing a DID document for a DID, maybe that is the credential issuer
$ didkit -@ "did:example:foo":foo.json vc-verify-credential ...
# specifying a DID document for a did:web DID for use during credential verification
$ didkit -@ "https://example.org/.well-known/did.json":example-did.json vc-verify-credential ... As a CLI option, this could be used in The other project is https://github.com/decentralized-identity/jsonld-document-loader. I'm not sure if it has a CLI or filesystem-based options. But it does also allow loading from paths and prefixes such as for DID methods. |
Is the idea here with |
I've made a branch on didkit which augments CLI with two particular contexts that I need for work in my industry. It works by adding to the contents of ssi::jsonld::CONTEXT_MAP, which is the built-in default contexts. This builds against the https://github.com/LedgerDomain/didkit/tree/with-oci-contexts This |
We should support
@context
and possibly jsonschema as options fed into the CLI. @clehner and I encountered this request at this most recent IIW. Perhaps it looks like:These are just some ideas. There's a lot of room for improvement, so feel free to take any design liberties to improve developer ergonomics and reduce chances of errors. Thank you @bumblefudge for the
-@
flag suggestion. :)@clehner, did you say there was another project that used this approach?
The text was updated successfully, but these errors were encountered: