From ebc0b847720bd1fd6eec34425fc1c78881299c7b Mon Sep 17 00:00:00 2001
From: Jan Dolling <jan-karsten.dolling@dataport.de>
Date: Wed, 3 Apr 2024 16:42:27 +0200
Subject: [PATCH] add schema field example and resources

---
 .gitignore  |  1 -
 schema.json | 15 ++++++++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 2963614..07e2d10 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,5 +4,4 @@
 .Ruserdata
 schema-sh-geojson-test.Rproj
 create_schema_def.R
-create_a_valid_schema.R
 create_Schema.py
\ No newline at end of file
diff --git a/schema.json b/schema.json
index 1d1a63d..1b7c2cc 100644
--- a/schema.json
+++ b/schema.json
@@ -9,7 +9,8 @@
     },
     {
       "name": "example_point",
-      "type": "geojson"
+      "type": "geojson",
+      "example": "{\"type\": \"Point\",\"coordinates\": [30.0, 10.0]}"
     }
   ],
   "primaryKey": [
@@ -28,5 +29,17 @@
       "organisation": "Dataport AöR",
       "role": "author"
     }
+  ],
+  "resources": [
+    {
+      "titel": "Gültiges csv Beispiel",
+      "name": "4_valid_examples.csv",
+      "path": "https://code.schleswig-holstein.de/api/v4/projects/108/repository/files/4_valid_examples.csv/raw/?ref=0.1.0"
+    },
+    {
+      "titel": "Ungültiges csv Beispiel",
+      "name": "4_invalid_examples.csv",
+      "path": "https://code.schleswig-holstein.de/api/v4/projects/108/repository/files/4_invalid_examples.csv/raw/?ref=0.1.0"
+    }
   ]
 }
\ No newline at end of file
-- 
GitLab