Compare commits
12 Commits
v2.2.0
...
af4b4407b8
| Author | SHA1 | Date | |
|---|---|---|---|
|
af4b4407b8
|
|||
|
7d2598efbd
|
|||
|
2990b32029
|
|||
|
0566ba2f7f
|
|||
| a2dc2e15f2 | |||
|
67cc3d9d74
|
|||
| bc039bbe5c | |||
| 0cb411c985 | |||
| d9e3b8fbb8 | |||
| 3ea17ce47c | |||
| e850c0be4c | |||
| f7a8e72d56 |
4
.github/release-drafter.yml
vendored
Normal file
4
.github/release-drafter.yml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
template: |
|
||||
## Changes
|
||||
|
||||
$CHANGES
|
||||
11
README.md
11
README.md
@@ -1,5 +1,7 @@
|
||||
This repository/module contains [JSON Schema](https://json-schema.org/) definitions as well as examples for
|
||||
[Kosmos](https://kosmos.org) data formats.
|
||||
[](https://www.npmjs.com/package/@kosmos/schemas)
|
||||
|
||||
This repository/module contains [JSON Schema](https://json-schema.org/)
|
||||
definitions as well as examples for [Kosmos](https://kosmos.org) data formats.
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -24,8 +26,3 @@ if (result) {
|
||||
console.log(tv4.error);
|
||||
}
|
||||
```
|
||||
|
||||
## TODO
|
||||
|
||||
* Add script for publishing both human- and machine-readable schemas to
|
||||
https://schema.kosmos.org
|
||||
|
||||
10
index.js
10
index.js
@@ -1,7 +1,9 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const contribution = require('./schemas/contribution');
|
||||
const contributor = require('./schemas/contributor');
|
||||
const expense = require('./schemas/expense');
|
||||
|
||||
module.exports = {
|
||||
"contribution": JSON.parse(fs.readFileSync(path.join(__dirname, 'schemas', 'contribution.json'))),
|
||||
"contributor": JSON.parse(fs.readFileSync(path.join(__dirname, 'schemas', 'contributor.json')))
|
||||
contribution,
|
||||
contributor,
|
||||
expense
|
||||
};
|
||||
|
||||
13
package-lock.json
generated
Normal file
13
package-lock.json
generated
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "@kosmos/schemas",
|
||||
"version": "3.1.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@kosmos/schemas",
|
||||
"version": "3.1.0",
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
}
|
||||
16
package.json
16
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "kosmos-schemas",
|
||||
"version": "2.2.0",
|
||||
"name": "@kosmos/schemas",
|
||||
"version": "3.1.0",
|
||||
"description": "JSON-LD schemas for Kosmos data formats",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
@@ -9,20 +9,14 @@
|
||||
"keywords": [
|
||||
"ipfs",
|
||||
"kosmos",
|
||||
"kredits",
|
||||
"remotestorage"
|
||||
],
|
||||
"author": "Kosmos Contributors",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/67P/kosmos-schemas.git"
|
||||
"url": "https://gitea.kosmos.org/kosmos/schemas.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"brfs-babel": "^1.0.0"
|
||||
},
|
||||
"browserify": {
|
||||
"transform": [
|
||||
"brfs-babel"
|
||||
]
|
||||
}
|
||||
"homepage": "https://gitea.kosmos.org/kosmos/schemas"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
module.exports = {
|
||||
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||
"id": "https://schema.kosmos.org/Contribution",
|
||||
"properties": {
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
module.exports = {
|
||||
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||
"id": "https://schema.kosmos.org/Contributor",
|
||||
"properties": {
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
module.exports = {
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "https://schema.kosmos.org/Expense",
|
||||
"type": "object",
|
||||
Reference in New Issue
Block a user