Skip to content

Commit

Permalink
feat: Extract examples
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat authored and mirceanis committed Nov 23, 2020
1 parent aef1c86 commit bf1466b
Show file tree
Hide file tree
Showing 31 changed files with 16,492 additions and 16,330 deletions.
6 changes: 2 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ examples
build/**/*
docs
report
packages/daf-rest/src/openApiSchema.ts
.vscode/settings.json
lerna.json
CHANGELOG.md
*.json
*.md
11 changes: 8 additions & 3 deletions docs/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ expect(doc).toEqual({
id: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190',
publicKey: [
{
id: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190#owner',
id: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190#controller',
type: 'Secp256k1VerificationKey2018',
owner: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190',
controller: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190',
ethereumAddress: '0xb09b66026ba5909a7cfe99b76875431d2b8d5190'
}
],
authentication: [
{
type: 'Secp256k1SignatureAuthentication2018',
publicKey: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190#owner'
publicKey: 'did:ethr:rinkeby:0xb09b66026ba5909a7cfe99b76875431d2b8d5190#controller'
}
]
})
Expand Down Expand Up @@ -227,6 +227,11 @@ Creates a Verifiable Presentation. The payload, signer and format are chosen bas
## [ISelectiveDisclosure](./api/daf-selective-disclosure.iselectivedisclosure.md)


### [createProfilePresentation](./api/daf-selective-disclosure.iselectivedisclosure.createprofilepresentation.md)




### [createSelectiveDisclosureRequest](./api/daf-selective-disclosure.iselectivedisclosure.createselectivedisclosurerequest.md)


Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "daf",
"private": true,
"scripts": {
"build": "yarn lerna run build && yarn extract-api && yarn create-plugin-credential && yarn docs:api && yarn docs:reference && yarn docs:clean-temp && yarn prettier:examples",
"build": "yarn lerna run build && yarn extract-api && yarn create-plugin-credential && yarn docs:api && yarn docs:examples && yarn docs:clean-temp && yarn prettier:examples",
"publish": "lerna publish",
"bootstrap": "lerna bootstrap",
"extract-api": "lerna run extract-api",
"create-plugin-credential": "lerna run create-plugin-credential",
"docs:examples": "ts-node --project packages/tsconfig.settings.json ./scripts/generate-schemas.ts",
"docs:examples": "ts-node --project packages/tsconfig.settings.json ./scripts/extract-examples.ts",
"docs:api": "ts-node ./scripts/generate-docs.ts",
"docs:reference": "api-documenter markdown -i ./temp -o ./docs/api",
"docs:clean-temp": "rm -rf ./temp",
Expand Down
Loading

0 comments on commit bf1466b

Please sign in to comment.