From 73c848795b655162e4bbad7fa058cc72af1fee47 Mon Sep 17 00:00:00 2001 From: Nebulis Date: Thu, 24 Jun 2021 15:27:16 +0800 Subject: [PATCH] fix: update context v3 from https://github.com/Open-Attestation/open-attestation/pull/184 --- .../1.0/OpenAttestation.v3.json | 142 +++++++------- yarn-error.log | 177 ------------------ 2 files changed, 63 insertions(+), 256 deletions(-) delete mode 100644 yarn-error.log diff --git a/src/com/openattestation/1.0/OpenAttestation.v3.json b/src/com/openattestation/1.0/OpenAttestation.v3.json index 51e0bd9..d431efc 100644 --- a/src/com/openattestation/1.0/OpenAttestation.v3.json +++ b/src/com/openattestation/1.0/OpenAttestation.v3.json @@ -2,89 +2,73 @@ "@context": { "@version": 1.1, "@protected": true, - "identityProof": { - "@id": "https://lol.com/todo", + "OpenAttestationCredential": { + "@id": "https://schemata.openattestation.com/vocab/#OpenAttestationCredential", "@context": { - "@version": 1.1, - "@protected": true, - "id": "@id", - "type": "@type", - "identifier": "xsd:string", - "DNS-TXT": "xsd:string" - } - }, - "credentialProof": { - "@id": "https://lol.com/todo", - "@context": { - "@version": 1.1, - "@protected": true, - "id": "@id", + "identity": { + "@id": "https://lol.com/todo", + "@context": { + "@version": 1.1, + "@protected": true, + "id": "@id", + "type": "@type", + "identifier": "xsd:string", + "DNS-TXT": "xsd:string" + } + }, + "template": { + "@id": "https://lol.com/todo", + "@context": { + "@version": 1.1, + "@protected": true, + "id": "@id", + "type": "@type", + "name": "xsd:string", + "url": "xsd:string", + "EMBEDDED_RENDERER": "xsd:string" + } + }, + "privacy": { + "@id": "https://lol.com/todo", + "@context": { + "@version": 1.1, + "@protected": true, + "obfuscatedData": { + "@id": "https://lol.com/todo", + "@container": [ + "@index", + "@set" + ] + } + } + }, + "method": "xsd:string", "OpenAttestationSignature2018": "xsd:string", - "method": "xsd:string" - } - }, - "openAttestationMetadata": { - "@id": "https://lol.com/todo", - "@context": { - "@version": 1.1, - "@protected": true, - "id": "@id" - } - }, - "template": { - "@id": "https://lol.com/todo", - "@context": { - "@version": 1.1, - "@protected": true, - "id": "@id", - "type": "@type", + "reference": "xsd:string", "name": "xsd:string", - "url": "xsd:string", - "EMBEDDED_RENDERER": "xsd:string" - } - }, - "privacy": { - "@id": "https://lol.com/todo", - "@context": { - "@version": 1.1, - "@protected": true, - "obfuscated": { + "value": "xsd:string", + "path": "xsd:string", + "signature": { "@id": "https://lol.com/todo", - "@container": ["@index", "@set"] - } - } - }, - "value": "xsd:string", - "reference": "xsd:string", - "name": "xsd:string", - "path": "xsd:string", - "targetHash": "xsd:string", - "proofs": { - "@id": "https://lol.com/todo", - "@container": ["@index", "@set"] - }, - "attachments": { - "@id": "https://lol.com/todo", - "@container": ["@index", "@set"] - }, - "merkleRoot": "xsd:string", - "salts": { - "@id": "https://lol.com/todo", - "@container": ["@index", "@set"] - }, - "data": "xsd:string", - "fileName": "xsd:string", - "mimeType": "xsd:string", - "OpenAttestationSignature2018": "xsd:string", - "method": "xsd:string", - "proofPurpose": "xsd:string", - "revocation": { - "@id": "https://lol.com/todo", - "@context": { - "@version": 1.1, - "@protected": true, - "type": "@type", - "location": "xsd:string" + "@context": { + "@version": 1.1, + "id": "@id", + "@protected": true, + "targetHash": "xsd:string", + "proof": "xsd:string", + "merkleRoot": "xsd:string", + "salts": { + "@id": "https://lol.com/todo", + "@container": [ + "@index", + "@set" + ] + } + } + }, + "data": "xsd:string", + "fileName": "xsd:string", + "mimeType": "xsd:string" } } } diff --git a/yarn-error.log b/yarn-error.log deleted file mode 100644 index 41fa39f..0000000 --- a/yarn-error.log +++ /dev/null @@ -1,177 +0,0 @@ -Arguments: - /home/raymond/.nvm/versions/node/v12.14.0/bin/node /home/raymond/.nvm/versions/node/v12.14.0/bin/yarn publish - -PATH: - /home/raymond/.solc-select:/home/raymond/.nix-profile/bin:~/.local/bin:/home/raymond/.solc-select:/home/raymond/.nix-profile/bin:~/.local/bin:/home/raymond/anaconda3/condabin:/home/raymond/.nvm/versions/node/v12.14.0/bin:/home/raymond/.nix-profile/bin:/home/raymond/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/raymond/.dotnet/tools:/home/raymond/.zokrates/bin:/home/raymond/.zokrates/bin - -Yarn version: - 1.21.1 - -Node version: - 12.14.0 - -Platform: - linux x64 - -Trace: - Error: canceled - at Interface. (/home/raymond/.nvm/versions/node/v12.14.0/lib/node_modules/yarn/lib/cli.js:136925:13) - at Interface.emit (events.js:210:5) - at Interface._ttyWrite (readline.js:887:16) - at ReadStream.onkeypress (readline.js:191:10) - at ReadStream.emit (events.js:210:5) - at emitKeys (internal/readline/utils.js:433:14) - at emitKeys.next () - at ReadStream.onData (readline.js:1153:36) - at ReadStream.emit (events.js:210:5) - at addChunk (_stream_readable.js:309:12) - -npm manifest: - { - "name": "@govtechsg/oa-schemata", - "version": "0.0.0-development", - "description": "Repository for schemata created by open-attestation", - "main": "dist/cjs/index.js", - "module": "dist/esm/index.js", - "browser": "dist/index.umd.js", - "types": "dist/types/index.d.ts", - "scripts": { - "build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:type", - "build:cjs": "tsc --module commonjs --outDir dist/cjs --project ./tsconfig.prod.json", - "build:esm": "tsc --module es2015 --outDir dist/esm --project ./tsconfig.prod.json", - "build:type": "tsc -d --emitDeclarationOnly --outDir dist/types", - "build:umd": "rollup -c", - "clean": "rm -rf dist/", - "dev": "cd app && npm run dev", - "test": "jest", - "test:watch": "npm run test -- --watch", - "lint": "eslint . --ext .ts --ext .js --max-warnings 0", - "lint:fix": "npm run lint -- --fix", - "publish:schema": "scripts/publish-schema.sh && cp _redirects ./public && cd app && npm i && npm run build && cd .. && cp -r app/public/* ./public ", - "postinstall": "node scripts/post-install", - "semantic-release": "semantic-release" - }, - "devDependencies": { - "@commitlint/cli": "8.3.3", - "@commitlint/config-conventional": "8.3.3", - "@commitlint/prompt": "8.3.3", - "@ls-age/commitlint-circle": "1.0.0", - "@rollup/plugin-json": "^4.0.0", - "@types/jest": "^24.0.23", - "@types/lodash": "^4.14.162", - "@typescript-eslint/eslint-plugin": "^2.8.0", - "@typescript-eslint/parser": "^2.8.0", - "axios": "^0.20.0", - "commitizen": "4.0.3", - "eslint": "^6.6.0", - "eslint-config-airbnb-base": "^14.0.0", - "eslint-config-prettier": "^6.7.0", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-jest": "^23.0.4", - "eslint-plugin-prettier": "^3.1.1", - "eslint-plugin-svelte3": "^2.7.3", - "git-cz": "^3.3.0", - "jest": "^24.9.0", - "lodash": "^4.17.20", - "mkdirp": "^1.0.4", - "prettier": "^1.19.1", - "prettier-plugin-svelte": "^1.4.1", - "quicktype": "^15.0.258", - "rollup": "^1.27.3", - "rollup-plugin-commonjs": "^10.1.0", - "semantic-release": "^17.2.1", - "svelte": "^3.29.4", - "ts-jest": "^24.1.0", - "ts-node": "^8.5.2", - "typescript": "^3.9.7" - }, - "files": [ - "/dist", - "/scripts" - ], - "repository": { - "type": "git", - "url": "https://github.com/Open-Attestation/schemata.git" - }, - "keywords": [], - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/Open-Attestation/schemata/issues" - }, - "homepage": "https://github.com/Open-Attestation/schemata#readme", - "publishConfig": { - "access": "public" - }, - "config": { - "commitizen": { - "path": "node_modules/@commitlint/prompt" - } - }, - "jest": { - "preset": "ts-jest", - "setupFiles": [ - "core-js" - ], - "testEnvironment": "node", - "testPathIgnorePatterns": [ - "node_modules", - "dist" - ] - }, - "eslintConfig": { - "extends": [ - "plugin:@typescript-eslint/recommended", - "prettier", - "prettier/@typescript-eslint", - "plugin:jest/recommended" - ], - "env": { - "jest": true - }, - "parser": "@typescript-eslint/parser", - "plugins": [ - "prettier", - "@typescript-eslint", - "svelte3" - ], - "overrides": [ - { - "files": [ - "**/*.svelte" - ], - "processor": "svelte3/svelte3" - } - ], - "rules": { - "no-unused-vars": [ - "error", - { - "argsIgnorePattern": "^_" - } - ], - "func-names": [ - "error", - "as-needed" - ], - "prettier/prettier": "error", - "import/no-unresolved": "off", - "import/prefer-default-export": "off", - "@typescript-eslint/explicit-function-return-type": "off", - "@typescript-eslint/no-explicit-any": "off", - "no-unused-expressions": "off", - "@typescript-eslint/no-unused-expressions": [ - "error" - ] - } - }, - "prettier": { - "printWidth": 120 - } - } - -yarn manifest: - No manifest - -Lockfile: - No lockfile