Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Date (Basic Format)",
"description": "A complete representation of a calendar date in basic format [YYYY][MM][DD] (§5.2.2.1 a)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "19850412", "20000101", "20231231", "00000101", "99991231" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^([0-9]{4}(0[13578]|1[02])(0[1-9]|[12][0-9]|3[01])|[0-9]{4}(0[469]|11)(0[1-9]|[12][0-9]|30)|[0-9]{4}02(0[1-9]|1[0-9]|2[0-9]))$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-century.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Century",
"description": "A calendar date with reduced precision representing a specific century [YY] (§5.2.2.2 d)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "19", "20", "00", "99" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[0-9]{2}$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-decade.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Decade",
"description": "A calendar date with reduced precision representing a specific decade [YYY] (§5.2.2.2 c)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "198", "200", "202", "000", "999" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[0-9]{3}$"
}
16 changes: 16 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-expanded-basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Date Expanded (Basic Format)",
"description": "An expanded representation of a calendar date in basic format [±][YYYYYY][MM][DD] with six digits for the year (§5.2.2.3 a)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [
"+0019850412",
"-0000010101",
"+9999991231",
"+0000000101",
"-0100000101"
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^([+-][0-9]{6}(0[13578]|1[02])(0[1-9]|[12][0-9]|3[01])|[+-][0-9]{6}(0[469]|11)(0[1-9]|[12][0-9]|30)|[+-][0-9]{6}02(0[1-9]|1[0-9]|2[0-9]))$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-expanded-century.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Century Expanded",
"description": "An expanded representation of a calendar century [±][YYYY] with four digits (§5.2.2.3 e)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "+0019", "-0000", "+9999", "+0000", "-0100" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[+-][0-9]{4}$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-expanded-decade.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Decade Expanded",
"description": "An expanded representation of a calendar decade [±][YYYYY] with five digits (§5.2.2.3 d)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "+00198", "-00000", "+99999", "+00000", "-01000" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[+-][0-9]{5}$"
}
16 changes: 16 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-expanded-extended.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Date Expanded (Extended Format)",
"description": "An expanded representation of a calendar date in extended format [±][YYYYYY][\"-\"][MM][\"-\"][DD] with six digits for the year (§5.2.2.3 a)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [
"+001985-04-12",
"-000001-01-01",
"+999999-12-31",
"+000000-01-01",
"-010000-01-01"
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^([+-][0-9]{6}-(0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|[+-][0-9]{6}-(0[469]|11)-(0[1-9]|[12][0-9]|30)|[+-][0-9]{6}-02-(0[1-9]|1[0-9]|2[0-9]))$"
}
16 changes: 16 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-expanded-month.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Month Expanded (Extended Format)",
"description": "An expanded representation of a calendar month in extended format [±][YYYYYY][\"-\"][MM] with six digits for the year (§5.2.2.3 b)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [
"+001985-04",
"-000001-01",
"+999999-12",
"+000000-01",
"-010000-12"
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[+-][0-9]{6}-(0[1-9]|1[0-2])$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-expanded-year.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Year Expanded",
"description": "An expanded representation of a calendar year [±][YYYYYY] with six digits for the year (§5.2.2.3 c)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "+001985", "-000001", "+999999", "+000000", "-010000" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[+-][0-9]{6}$"
}
16 changes: 16 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-extended.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Date (Extended Format)",
"description": "A complete representation of a calendar date in extended format [YYYY][\"-\"][MM][\"-\"][DD] (§5.2.2.1 b)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [
"1985-04-12",
"2000-01-01",
"2023-12-31",
"0000-01-01",
"9999-12-31"
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^([0-9]{4}-(0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01])|[0-9]{4}-(0[469]|11)-(0[1-9]|[12][0-9]|30)|[0-9]{4}-02-(0[1-9]|1[0-9]|2[0-9]))$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-month.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Month (Extended Format)",
"description": "A calendar date with reduced precision representing a specific calendar month [YYYY][\"-\"][MM] (§5.2.2.2 a)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "1985-04", "2000-01", "2023-12", "0000-01", "9999-12" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-calendar-year.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Calendar Year",
"description": "A calendar date with reduced precision representing a specific calendar year [YYYY] (§5.2.2.2 b)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "1985", "2000", "2023", "0000", "9999" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[0-9]{4}$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-ordinal-basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Ordinal Date (Basic Format)",
"description": "A complete representation of an ordinal date in basic format [YYYY][DDD] where DDD is the calendar day of year (001-365/366) (§5.2.3.1 a)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "1985102", "2000001", "2000366", "2023365", "0000001" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[0-9]{4}(00[1-9]|0[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6])$"
}
16 changes: 16 additions & 0 deletions schemas/iso/datetime/2019/date-ordinal-expanded-basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Ordinal Date Expanded (Basic Format)",
"description": "An expanded representation of an ordinal date in basic format [±][YYYYYY][DDD] with six digits for the year and DDD as calendar day of year (001-365/366) (§5.2.3.2 a)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [
"+001985102",
"-000001001",
"+999999366",
"+000000001",
"-010000365"
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[+-][0-9]{6}(00[1-9]|0[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6])$"
}
16 changes: 16 additions & 0 deletions schemas/iso/datetime/2019/date-ordinal-expanded-extended.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Ordinal Date Expanded (Extended Format)",
"description": "An expanded representation of an ordinal date in extended format [±][YYYYYY][\"-\"][DDD] with six digits for the year and DDD as calendar day of year (001-365/366) (§5.2.3.2 b)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [
"+001985-102",
"-000001-001",
"+999999-366",
"+000000-001",
"-010000-365"
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[+-][0-9]{6}-(00[1-9]|0[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6])$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-ordinal-extended.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Ordinal Date (Extended Format)",
"description": "A complete representation of an ordinal date in extended format [YYYY][\"-\"][DDD] where DDD is the calendar day of year (001-365/366) (§5.2.3.1 b)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "1985-102", "2000-001", "2000-366", "2023-365", "0000-001" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[0-9]{4}-(00[1-9]|0[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6])$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-week-basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Week Date (Basic Format)",
"description": "A complete representation of a week date in basic format [YYYY][\"W\"][WW][D] where WW is the calendar week of year (01-53) and D is the calendar day of week (1-7) (§5.2.4.1 a)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "1985W155", "2000W011", "2023W527", "0000W011", "9999W537" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[0-9]{4}W(0[1-9]|[1-4][0-9]|5[0-3])[1-7]$"
}
16 changes: 16 additions & 0 deletions schemas/iso/datetime/2019/date-week-expanded-basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Week Date Expanded (Basic Format)",
"description": "An expanded representation of a week date in basic format [±][YYYYYY][\"W\"][WW][D] with six digits for the year, WW as calendar week of year (01-53), and D as calendar day of week (1-7) (§5.2.4.3 a)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [
"+001985W155",
"-000001W011",
"+999999W537",
"+000000W011",
"-010000W527"
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[+-][0-9]{6}W(0[1-9]|[1-4][0-9]|5[0-3])[1-7]$"
}
16 changes: 16 additions & 0 deletions schemas/iso/datetime/2019/date-week-expanded-extended.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Week Date Expanded (Extended Format)",
"description": "An expanded representation of a week date in extended format [±][YYYYYY][\"-\"][\"W\"][WW][\"-\"][D] with six digits for the year, WW as calendar week of year (01-53), and D as calendar day of week (1-7) (§5.2.4.3 a)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [
"+001985-W15-5",
"-000001-W01-1",
"+999999-W53-7",
"+000000-W01-1",
"-010000-W52-7"
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[+-][0-9]{6}-W(0[1-9]|[1-4][0-9]|5[0-3])-[1-7]$"
}
16 changes: 16 additions & 0 deletions schemas/iso/datetime/2019/date-week-expanded-reduced-basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Week Date Expanded Reduced Precision (Basic Format)",
"description": "An expanded representation of a week date with reduced precision in basic format [±][YYYYYY][\"W\"][WW] with six digits for the year and WW as calendar week of year (01-53) (§5.2.4.3 b)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [
"+001985W15",
"-000001W01",
"+999999W53",
"+000000W01",
"-010000W52"
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[+-][0-9]{6}W(0[1-9]|[1-4][0-9]|5[0-3])$"
}
16 changes: 16 additions & 0 deletions schemas/iso/datetime/2019/date-week-expanded-reduced-extended.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Week Date Expanded Reduced Precision (Extended Format)",
"description": "An expanded representation of a week date with reduced precision in extended format [±][YYYYYY][\"-\"][\"W\"][WW] with six digits for the year and WW as calendar week of year (01-53) (§5.2.4.3 b)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [
"+001985-W15",
"-000001-W01",
"+999999-W53",
"+000000-W01",
"-010000-W52"
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[+-][0-9]{6}-W(0[1-9]|[1-4][0-9]|5[0-3])$"
}
16 changes: 16 additions & 0 deletions schemas/iso/datetime/2019/date-week-extended.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Week Date (Extended Format)",
"description": "A complete representation of a week date in extended format [YYYY][\"-\"][\"W\"][WW][\"-\"][D] where WW is the calendar week of year (01-53) and D is the calendar day of week (1-7) (§5.2.4.1 b)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [
"1985-W15-5",
"2000-W01-1",
"2023-W52-7",
"0000-W01-1",
"9999-W53-7"
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[0-9]{4}-W(0[1-9]|[1-4][0-9]|5[0-3])-[1-7]$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-week-reduced-basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Week Date Reduced Precision (Basic Format)",
"description": "A week date with reduced precision in basic format [YYYY][\"W\"][WW] where WW is the calendar week of year (01-53) (§5.2.4.2 a)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "1985W15", "2000W01", "2023W52", "0000W01", "9999W53" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[0-9]{4}W(0[1-9]|[1-4][0-9]|5[0-3])$"
}
10 changes: 10 additions & 0 deletions schemas/iso/datetime/2019/date-week-reduced-extended.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ISO 8601-1:2019 Week Date Reduced Precision (Extended Format)",
"description": "A week date with reduced precision in extended format [YYYY][\"-\"][\"W\"][WW] where WW is the calendar week of year (01-53) (§5.2.4.2 b)",
"$comment": "https://www.iso.org/standard/70907.html",
"examples": [ "1985-W15", "2000-W01", "2023-W52", "0000-W01", "9999-W53" ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"type": "string",
"pattern": "^[0-9]{4}-W(0[1-9]|[1-4][0-9]|5[0-3])$"
}
Loading