From 7e7bd85a22acbdc968cbe6d5343b4afeb9db85d7 Mon Sep 17 00:00:00 2001
From: Benoit Rospars <benoit.rospars@inria.fr>
Date: Fri, 1 Dec 2023 16:58:13 +0100
Subject: [PATCH] Add license to ePoc metadata

---
 src/v1/epoc.ts |  5 +++++
 src/v2/epoc.ts | 20 ++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/src/v1/epoc.ts b/src/v1/epoc.ts
index 36cb932..e997666 100644
--- a/src/v1/epoc.ts
+++ b/src/v1/epoc.ts
@@ -18,6 +18,11 @@ export interface EpocMetadata {
     assessmentsCount: number;
     download: string;
     edition: string;
+    license: {
+        name: string;
+        url: string;
+        content: string;
+    }
 }
 
 export interface Epoc extends EpocMetadata {
diff --git a/src/v2/epoc.ts b/src/v2/epoc.ts
index f2f23b6..e5e7505 100644
--- a/src/v2/epoc.ts
+++ b/src/v2/epoc.ts
@@ -82,6 +82,26 @@ export interface EpocMetadata {
      */
     translations?: Map<langcode, uid>;
 
+    /**
+     * Specifies the ePoc license
+     */
+    license: {
+        /**
+         * Specifies the license name
+         */
+        name: string;
+
+        /**
+         * Specifies the url where you can find the license
+         */
+        url: string;
+
+        /**
+         * Specifies the text content of the license
+         */
+        content: string;
+    }
+
 }
 
 /**
-- 
GitLab