Skip to content

Commit d88c04f

Browse files
committed
Add $schema for optional/format 2020-12
1 parent da237da commit d88c04f

20 files changed

+77
-19
lines changed

tests/draft2020-12/optional/format/date-time.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"description": "validation of date-time strings",
4-
"schema": { "format": "date-time" },
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "date-time"
7+
},
58
"tests": [
69
{
710
"description": "all string formats ignore integers",

tests/draft2020-12/optional/format/date.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"description": "validation of date strings",
4-
"schema": { "format": "date" },
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "date"
7+
},
58
"tests": [
69
{
710
"description": "all string formats ignore integers",

tests/draft2020-12/optional/format/duration.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"description": "validation of duration strings",
4-
"schema": { "format": "duration" },
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "duration"
7+
},
58
"tests": [
69
{
710
"description": "all string formats ignore integers",

tests/draft2020-12/optional/format/email.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"description": "validation of e-mail addresses",
4-
"schema": { "format": "email" },
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "email"
7+
},
58
"tests": [
69
{
710
"description": "all string formats ignore integers",

tests/draft2020-12/optional/format/hostname.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"description": "validation of host names",
4-
"schema": { "format": "hostname" },
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "hostname"
7+
},
58
"tests": [
69
{
710
"description": "all string formats ignore integers",

tests/draft2020-12/optional/format/idn-email.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"description": "validation of an internationalized e-mail addresses",
4-
"schema": { "format": "idn-email" },
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "idn-email"
7+
},
58
"tests": [
69
{
710
"description": "all string formats ignore integers",

tests/draft2020-12/optional/format/idn-hostname.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"description": "validation of internationalized host names",
4-
"schema": { "format": "idn-hostname" },
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "idn-hostname"
7+
},
58
"tests": [
69
{
710
"description": "all string formats ignore integers",

tests/draft2020-12/optional/format/ipv4.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"description": "validation of IP addresses",
4-
"schema": { "format": "ipv4" },
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "ipv4"
7+
},
58
"tests": [
69
{
710
"description": "all string formats ignore integers",

tests/draft2020-12/optional/format/ipv6.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"description": "validation of IPv6 addresses",
4-
"schema": { "format": "ipv6" },
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "ipv6"
7+
},
58
"tests": [
69
{
710
"description": "all string formats ignore integers",

tests/draft2020-12/optional/format/iri-reference.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[
22
{
33
"description": "validation of IRI References",
4-
"schema": { "format": "iri-reference" },
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "iri-reference"
7+
},
58
"tests": [
69
{
710
"description": "all string formats ignore integers",

0 commit comments

Comments
 (0)