Skip to content

Commit

Permalink
Merge pull request #32 from DACCS-Climate/add-name-field
Browse files Browse the repository at this point in the history
add name field to registry
  • Loading branch information
mishaschwartz authored Jan 19, 2024
2 parents 5d33520 + 11d0bbd commit 4a21e05
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ If you are already part of the Marble Network and details about your node have c
In which case, please submit the pull request with the new URL and the Executive Committee will approve it quickly.

When making changes to the node_registry.json file please only change or add the following values:
- `name` (the name of your node, to be displayed to users)
- `affiliation` (the name of your organization, optional)
- `description` (a short description of your node, optional)
- `location` (latitude and longitude of your organization, optional)
Expand Down
1 change: 1 addition & 0 deletions doc/node_registry.example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"UofT": {
"name": "UofT",
"date_added": "2023-05-04T17:09:07+0000",
"affiliation": "University of Toronto",
"description": "This is the best node there is!",
Expand Down
5 changes: 4 additions & 1 deletion node_registry.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"UofT": {
"UofTRedOak": {
"name": "Red Oak",
"affiliation": "University of Toronto",
"description": "A Marble node hosted at the University of Toronto.",
"location": {
Expand Down Expand Up @@ -37,6 +38,7 @@
]
},
"PAVICS": {
"name": "PAVICS",
"affiliation": "Ouranos",
"description": "PAVICS is a virtual laboratory facilitating the analysis of climate data.",
"location": {
Expand Down Expand Up @@ -74,6 +76,7 @@
]
},
"Hirondelle": {
"name": "Hirondelle",
"affiliation": "Computer Research Institute of Montréal (CRIM)",
"description": "Development server to evaluate new features of the bird-house deployment architecture.",
"location": {
Expand Down
6 changes: 5 additions & 1 deletion node_registry.schema.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"patternProperties": {
"^[a-zA-Z0-9_-]+$": {
"^[a-zA-Z0-9]+$": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"date_added": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -166,6 +169,7 @@
"required": [
"contact",
"links",
"name",
"registration_status"
],
"additionalProperties": false
Expand Down

0 comments on commit 4a21e05

Please sign in to comment.