Skip to content

Commit

Permalink
feat: release healthcert
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebulis committed Nov 20, 2020
1 parent f8017ce commit 6fa000c
Show file tree
Hide file tree
Showing 18 changed files with 571 additions and 511 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@
]
}
```
In the example above:

- `"$id"` field is the URL from which the schema will be available at.
In the example above:

- `"$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.
- `"$id"` field is the URL from which the schema will be available at.

- `"$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.

1. Add tests for your schema.

>_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.
```
> 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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"mkdirp": "^1.0.4",
"prettier": "^1.19.1",
"prettier-plugin-svelte": "^1.4.1",
"quicktype": "^15.0.207",
"quicktype": "^15.0.258",
"semantic-release": "^17.2.1",
"svelte": "^3.29.4",
"ts-jest": "^24.1.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/post-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ const generate = ({ path, rootTypeName }) => {
console.log(`Creating types from src/${path}/schema.json`);
mkdirp.sync(`src/__generated__/${path}`);
execSync(
`${quicktype} -s schema -o src/__generated__/${path}/schema.ts -t ${rootTypeName} --just-types src/${path}/schema.json --no-date-times
`${quicktype} -s schema -o src/__generated__/${path}/schema.ts -t ${rootTypeName} --just-types src/${path}/schema.json --no-date-times --acronym-style original
`
);
};

if (fs.existsSync(quicktype) && process.env.npm_config_production !== "true") {
generate({ path: "sg/gov/tech/geekout/1.0", rootTypeName: "Geekout" });
generate({ path: "sg/gov/tech/notarise/1.0", rootTypeName: "Notarise" });
// generate({ path: "sg/gov/moh/healthcert/1.0", rootTypeName: "HealthCert" });
generate({ path: "sg/gov/moh/healthcert/1.0", rootTypeName: "HealthCert" });
} else {
console.log("Not running quicktype");
}
156 changes: 0 additions & 156 deletions src/sg/gov/moh/healthcert/1.0-draft/healthcert-notarised-wrapped.json

This file was deleted.

22 changes: 0 additions & 22 deletions src/sg/gov/moh/healthcert/1.0-draft/healthcert-notarised.test.ts

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6fa000c

Please sign in to comment.