Skip to content

Commit

Permalink
Merge pull request #256 from ThreeSixtyGiving/new-currency-code
Browse files Browse the repository at this point in the history
Add new VES currency code
  • Loading branch information
mrshll1001 authored Jul 14, 2020
2 parents ae488f7 + 5e79997 commit 637d3d8
Showing 1 changed file with 42 additions and 18 deletions.
60 changes: 42 additions & 18 deletions schema/360-giving-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@
"UZS",
"VEB",
"VEF",
"VES",
"VNC",
"VND",
"VUV",
Expand Down Expand Up @@ -322,8 +323,12 @@
},
"transactionDate": {
"oneOf": [
{"format": "date-time"},
{"pattern":"^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$"}
{
"format": "date-time"
},
{
"pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$"
}
],
"type": "string",
"description": "When did this transaction take place? The date should be written as YYYY-MM-DD, or in full date-time format.",
Expand All @@ -341,8 +346,12 @@
},
"valueDate": {
"oneOf": [
{"format": "date-time"},
{"pattern":"^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$"}
{
"format": "date-time"
},
{
"pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$"
}
],
"type": [
"string",
Expand Down Expand Up @@ -1011,16 +1020,21 @@
"properties": {
"title": {
"type": "string",
"title":"Title",
"title": "Title",
"description": "The title of this event",
"weight": 1.05,
"title": "Title"
"weight": 1.05
},
"startDate": {
"oneOf": [
{"format": "date-time"},
{"pattern":"^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$"},
{"pattern":"^[0-9]{4}(-(0[1-9]|1[012]))?$"}
{
"format": "date-time"
},
{
"pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$"
},
{
"pattern": "^[0-9]{4}(-(0[1-9]|1[012]))?$"
}
],
"type": "string",
"description": "All events should have a start date. Dates should be in YYYY-MM-DD or date-time format. If the month or day are not available, these may be omitted.",
Expand All @@ -1029,9 +1043,15 @@
},
"endDate": {
"oneOf": [
{"format": "date-time"},
{"pattern":"^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$"},
{"pattern":"^[0-9]{4}(-(0[1-9]|1[012]))?$"}
{
"format": "date-time"
},
{
"pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$"
},
{
"pattern": "^[0-9]{4}(-(0[1-9]|1[012]))?$"
}
],
"type": "string",
"description": "An end date for the grant. Dates should be in YYYY-MM-DD or date-time format. If the month or day are not available, these may be omitted.",
Expand Down Expand Up @@ -1113,8 +1133,12 @@
},
"awardDate": {
"oneOf": [
{"format": "date-time"},
{"pattern":"^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$"}
{
"format": "date-time"
},
{
"pattern": "^[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$"
}
],
"type": "string",
"description": "When was the decision to award this grant made. The date should be written as YYYY-MM-DD, or in full date-time format.",
Expand All @@ -1135,7 +1159,7 @@
"type": "array",
"weight": 5.041,
"title": "Planned Dates",
"description":"When the recipient organisation intends this activity to take place. A date range can include a start date and duration in months, or a start and end date.",
"description": "When the recipient organisation intends this activity to take place. A date range can include a start date and duration in months, or a start and end date.",
"rollUp": [
"startDate",
"endDate",
Expand All @@ -1159,7 +1183,7 @@
"type": "array",
"weight": 5,
"title": "Recipient Org",
"description":"Details of the recipient of this grant.",
"description": "Details of the recipient of this grant.",
"rollUp": [
"id",
"name",
Expand Down Expand Up @@ -1308,4 +1332,4 @@
"title": "Data Source"
}
}
}
}

0 comments on commit 637d3d8

Please sign in to comment.