Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 9169681

Browse files
authored
feat: healthcert 1.0 (#4)
1 parent 7ee05ec commit 9169681

File tree

9 files changed

+2680
-464
lines changed

9 files changed

+2680
-464
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
- checkout
88
- run:
99
name: install
10-
command: npm ci
10+
command: npm ci && npm run postinstall #https://discuss.circleci.com/t/build-fail-with-circleci-node-latest/37885
1111
- run:
1212
name: commitlint
1313
command: npx --no-install commitlint-circle
@@ -16,7 +16,7 @@ jobs:
1616
command: npm run lint
1717
- run:
1818
name: test
19-
command: npm run test
19+
command: npm run postinstall && npm run test
2020
- run:
2121
name: build
2222
command: npm run build

README.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,28 @@
2626

2727
1. In the same folder as your `schema.json`, create a json file labelled `<name>-open-attestation.json` with the following attributes:
2828

29-
```json
30-
{
31-
"$id": "...",
32-
"$schema": "http://json-schema.org/draft-07/schema#",
33-
"type": "object",
34-
"allOf": [
35-
{
36-
"$ref": "https://schema.openattestation.com/2.0/schema.json"
37-
},
38-
{
39-
"$ref": "..."
40-
}
41-
]
42-
}
43-
```
44-
In the example above:
45-
46-
- `"$id"` field is the URL from which the schema will be available at.
47-
48-
- `"$ref"` field is a reference to the URL where your existing schema is published. The first `"$ref"` field refers to the URL where the Open Attestation schema is at.
49-
50-
2. Add tests for your schema.
51-
52-
>_If you are uncertain of the structure of an Open Attestation document, you can refer to [this](https://openattestation.com/docs/verifiable-document/raw-document) and append your existing sample document with the required fields._
29+
```json
30+
{
31+
"$id": "...",
32+
"$schema": "http://json-schema.org/draft-07/schema#",
33+
"type": "object",
34+
"allOf": [
35+
{
36+
"$ref": "https://schema.openattestation.com/2.0/schema.json"
37+
},
38+
{
39+
"$ref": "..."
40+
}
41+
]
42+
}
43+
```
44+
In the example above:
45+
46+
- `"$id"` field is the URL from which the schema will be available at.
47+
48+
- `"$ref"` field is a reference to the URL where your existing schema is published. The first `"$ref"` field refers to the URL where the Open Attestation schema is at.
5349

50+
1. Add tests for your schema.
5451

52+
>_If you are uncertain of the structure of an Open Attestation document, you can refer to [this](https://openattestation.com/docs/verifiable-document/raw-document) and append your existing sample document with the required fields.
53+
```

0 commit comments

Comments
 (0)