Compare commits

..

No commits in common. "master" and "v2.2.1" have entirely different histories.

7 changed files with 17 additions and 36 deletions

View File

@ -3,7 +3,6 @@
"description": "Dedicated server: andromeda.kosmos.org, April 2020", "description": "Dedicated server: andromeda.kosmos.org, April 2020",
"currency": "EUR", "currency": "EUR",
"amount": 39.00, "amount": 39.00,
"amountSats": 422966,
"date": "2020-05-06", "date": "2020-05-06",
"url": "https://wiki.kosmos.org/Infrastructure#Hetzner", "url": "https://wiki.kosmos.org/Infrastructure#Hetzner",
"tags": ["infrastructure", "server", "hetzner"] "tags": ["infrastructure", "server", "hetzner"]

View File

@ -1,9 +1,7 @@
const contribution = require('./schemas/contribution'); const fs = require('fs');
const contributor = require('./schemas/contributor'); const path = require('path');
const expense = require('./schemas/expense');
module.exports = { module.exports = {
contribution, "contribution": JSON.parse(fs.readFileSync(path.join(__dirname, 'schemas', 'contribution.json'))),
contributor, "contributor": JSON.parse(fs.readFileSync(path.join(__dirname, 'schemas', 'contributor.json')))
expense
}; };

13
package-lock.json generated
View File

@ -1,13 +0,0 @@
{
"name": "@kosmos/schemas",
"version": "3.2.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@kosmos/schemas",
"version": "3.2.0",
"license": "MIT"
}
}
}

View File

@ -1,6 +1,6 @@
{ {
"name": "@kosmos/schemas", "name": "@kosmos/schemas",
"version": "3.2.0", "version": "2.2.1",
"description": "JSON-LD schemas for Kosmos data formats", "description": "JSON-LD schemas for Kosmos data formats",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
@ -9,14 +9,20 @@
"keywords": [ "keywords": [
"ipfs", "ipfs",
"kosmos", "kosmos",
"kredits",
"remotestorage" "remotestorage"
], ],
"author": "Kosmos Contributors", "author": "Kosmos Contributors",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitea.kosmos.org/kosmos/schemas.git" "url": "https://github.com/67P/kosmos-schemas.git"
}, },
"homepage": "https://gitea.kosmos.org/kosmos/schemas" "dependencies": {
"brfs-babel": "^1.0.0"
},
"browserify": {
"transform": [
"brfs-babel"
]
}
} }

View File

@ -1,4 +1,4 @@
module.exports = { {
"$schema": "https://json-schema.org/draft-07/schema#", "$schema": "https://json-schema.org/draft-07/schema#",
"id": "https://schema.kosmos.org/Contribution", "id": "https://schema.kosmos.org/Contribution",
"properties": { "properties": {

View File

@ -1,4 +1,4 @@
module.exports = { {
"$schema": "https://json-schema.org/draft-07/schema#", "$schema": "https://json-schema.org/draft-07/schema#",
"id": "https://schema.kosmos.org/Contributor", "id": "https://schema.kosmos.org/Contributor",
"properties": { "properties": {

View File

@ -1,4 +1,4 @@
module.exports = { {
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://schema.kosmos.org/Expense", "$id": "https://schema.kosmos.org/Expense",
"type": "object", "type": "object",
@ -60,15 +60,6 @@ module.exports = {
42.0 42.0
] ]
}, },
"amountSats": {
"type": "number",
"title": "Amount in sats",
"description": "Amount in BTC satoshis",
"default": 0,
"examples": [
21000
]
},
"date": { "date": {
"type": "string", "type": "string",
"format": "date", "format": "date",