Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
Add handlebars based templater.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Jun 9, 2019
1 parent 216bf4d commit f8724c6
Show file tree
Hide file tree
Showing 17 changed files with 1,446 additions and 249 deletions.
2 changes: 1 addition & 1 deletion config.json.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generator": "../did-cli/did",
"generator": "../your/app"
}
241 changes: 241 additions & 0 deletions implementations/empty-report.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,241 @@
{
"Identifier": [
{
"fullTitle": "A DID method specification MUST further restrict the generic DID syntax by defining its own method-name and its own method-specific-id syntax.",
"optional": false,
"title": "A DID method specification MUST further restrict the generic DID syntax by defining its own method-name and its own method-specific-id syntax.",
"pending": false,
"state": "passed",
"duration": 2,
"speed": "fast",
"errors": ""
},
{
"fullTitle": "A method-specific parameter name MUST be prefixed by the method name as defined by the method-name rule.",
"optional": false,
"title": "A method-specific parameter name MUST be prefixed by the method name as defined by the method-name rule.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "A generic DID path is identical to a URI path and MUST conform to the the path-abempty ABNF rule in [RFC3986].",
"optional": false,
"title": "A generic DID path is identical to a URI path and MUST conform to the the path-abempty ABNF rule in [RFC3986].",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "A generic DID query is identical to a URI query and MUST conform to the the query ABNF rule in [RFC3986].",
"optional": false,
"title": "A generic DID query is identical to a URI query and MUST conform to the the query ABNF rule in [RFC3986].",
"pending": false,
"state": "failed",
"duration": 1,
"errors": "Not Implemented"
},
{
"fullTitle": "A generic DID fragment is identical to a URI fragment and MUST conform to the the fragment ABNF rule in [RFC3986]",
"optional": false,
"title": "A generic DID fragment is identical to a URI fragment and MUST conform to the the fragment ABNF rule in [RFC3986]",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "The did: scheme name MUST be lowercase.",
"optional": false,
"title": "The did: scheme name MUST be lowercase.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "(did) The method name MUST be lowercase.",
"optional": false,
"title": "(did) The method name MUST be lowercase.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
}
],
"Document": [
{
"fullTitle": "The value of the @context property MUST be one or more URIs, where the value of the first URI ishttps://www.w3.org/2019/did/v1.",
"optional": false,
"title": "The value of the @context property MUST be one or more URIs, where the value of the first URI ishttps://www.w3.org/2019/did/v1.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "If more than one URI is provided, the URIs MUST be interpreted as an ordered set.",
"optional": false,
"title": "If more than one URI is provided, the URIs MUST be interpreted as an ordered set.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "DID Documents MUST include the @context property.",
"optional": false,
"title": "DID Documents MUST include the @context property.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "A DID Document MUST have exactly one top-level context statement.",
"optional": false,
"title": "A DID Document MUST have exactly one top-level context statement.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "The key for this property (context) MUST be @context.",
"optional": false,
"title": "The key for this property (context) MUST be @context.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "The value of this key MUST be at least the URL for the generic DID context: https://www.w3.org/2019/did/v1.",
"optional": false,
"title": "The value of this key MUST be at least the URL for the generic DID context: https://www.w3.org/2019/did/v1.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "Method-specific contexts MUST NOT override the terms defined in the generic DID context.",
"optional": false,
"title": "Method-specific contexts MUST NOT override the terms defined in the generic DID context.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "A DID Document MUST have exactly one DID subject.",
"optional": false,
"title": "A DID Document MUST have exactly one DID subject.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "The key for this property MUST be id.",
"optional": false,
"title": "The key for this property MUST be id.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "The value of this key MUST be a valid DID.",
"optional": false,
"title": "The value of this key MUST be a valid DID.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "However, the fully resolved DID Document MUST contain a valid id property.",
"optional": false,
"title": "However, the fully resolved DID Document MUST contain a valid id property.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "A DID Document that contains a revoked key MUST also contain or refer to the revocation information for the key (e.g., a revocation list).",
"optional": false,
"title": "A DID Document that contains a revoked key MUST also contain or refer to the revocation information for the key (e.g., a revocation list).",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "The value of the publicKey property MUST be an array of public keys.",
"optional": false,
"title": "The value of the publicKey property MUST be an array of public keys.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "Each public key MUST include id and type properties, and exactly one value property. The array of public keys MUST NOT contain duplicate entries with the same id.",
"optional": false,
"title": "Each public key MUST include id and type properties, and exactly one value property. The array of public keys MUST NOT contain duplicate entries with the same id.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "Each public key MUST include a controller property, which identifies the controller of the corresponding private key.",
"optional": false,
"title": "Each public key MUST include a controller property, which identifies the controller of the corresponding private key.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "The value property of a public key MUST be exactly one of publicKeyPem, publicKeyJwk, publicKeyHex, publicKeyBase64, publicKeyBase58, publicKeyMultibase, depending on the format and encoding of the public key.",
"optional": false,
"title": "The value property of a public key MUST be exactly one of publicKeyPem, publicKeyJwk, publicKeyHex, publicKeyBase64, publicKeyBase58, publicKeyMultibase, depending on the format and encoding of the public key.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "Each service endpoint MUSTmust include id, type, and serviceEndpoint properties, and MAY include additional properties.",
"optional": false,
"title": "Each service endpoint MUSTmust include id, type, and serviceEndpoint properties, and MAY include additional properties.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "The value of the serviceEndpoint property MUST be a JSON-LD object or a valid URI conforming to [RFC3986] and normalized according to the rules in section 6 of [RFC3986] and to any normalization rules in its applicable URI scheme specification.",
"optional": false,
"title": "The value of the serviceEndpoint property MUST be a JSON-LD object or a valid URI conforming to [RFC3986] and normalized according to the rules in section 6 of [RFC3986] and to any normalization rules in its applicable URI scheme specification.",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
},
{
"fullTitle": "A DID Document MUST be a single JSON object conforming to [RFC8259].",
"optional": false,
"title": "A DID Document MUST be a single JSON object conforming to [RFC8259].",
"pending": false,
"state": "failed",
"duration": 0,
"errors": "Not Implemented"
}
]
}
Loading

0 comments on commit f8724c6

Please sign in to comment.