From 40d995f60f478340dd28076cb958d5bb7128a642 Mon Sep 17 00:00:00 2001 From: Raymond Cheng Date: Wed, 15 Jan 2025 14:21:05 -0800 Subject: [PATCH] feat: add defillama URLs to project schema * Bump npm and pypi version numbers and published --- package.json | 2 +- pyproject.toml | 2 +- src/resources/schema/project.json | 6 ++++++ src/types/project.ts | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3021c08ef..a1fd3f83d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oss-directory", - "version": "0.0.16", + "version": "0.0.17", "description": "Open source software directory", "repository": { "type": "git", diff --git a/pyproject.toml b/pyproject.toml index 7ed44de58..9ea445fb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "oss-directory" -version = "0.2.1" +version = "0.2.2" description = "Open source software directory" authors = ["Kariba Labs"] license = "Apache-2.0" diff --git a/src/resources/schema/project.json b/src/resources/schema/project.json index 219da0f91..6d13477e5 100644 --- a/src/resources/schema/project.json +++ b/src/resources/schema/project.json @@ -67,6 +67,12 @@ "$ref": "blockchain-address.json#" } }, + "defillama": { + "type": "array", + "items": { + "$ref": "url.json#" + } + }, "comments": { "type": "array", "items": { diff --git a/src/types/project.ts b/src/types/project.ts index 6412ce9d1..a52df892b 100644 --- a/src/types/project.ts +++ b/src/types/project.ts @@ -22,6 +22,7 @@ export interface Project { go?: URL[]; open_collective?: URL[]; blockchain?: BlockchainAddress[]; + defillama?: URL[]; comments?: string[]; [k: string]: unknown; }