Skip to content

Commit af6b372

Browse files
committed
Squashed 'json/' changes from 4ba013d5..e524505b
e524505b Merge pull request #759 from sirosen/hostname-format-reject-single-dot 4a3efd18 Add negative tests for "." for hostname formats git-subtree-dir: json git-subtree-split: e524505b8ac4a61c5dc162b51d68c2385a134706
1 parent b46e6d4 commit af6b372

File tree

10 files changed

+50
-0
lines changed

10 files changed

+50
-0
lines changed

tests/draft-next/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@
125125
"description": "empty string",
126126
"data": "",
127127
"valid": false
128+
},
129+
{
130+
"description": "single dot",
131+
"data": ".",
132+
"valid": false
128133
}
129134
]
130135
}

tests/draft-next/optional/format/idn-hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@
331331
"description": "empty string",
332332
"data": "",
333333
"valid": false
334+
},
335+
{
336+
"description": "single dot",
337+
"data": ".",
338+
"valid": false
334339
}
335340
]
336341
}

tests/draft2019-09/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@
125125
"description": "empty string",
126126
"data": "",
127127
"valid": false
128+
},
129+
{
130+
"description": "single dot",
131+
"data": ".",
132+
"valid": false
128133
}
129134
]
130135
}

tests/draft2019-09/optional/format/idn-hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@
331331
"description": "empty string",
332332
"data": "",
333333
"valid": false
334+
},
335+
{
336+
"description": "single dot",
337+
"data": ".",
338+
"valid": false
334339
}
335340
]
336341
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@
125125
"description": "empty string",
126126
"data": "",
127127
"valid": false
128+
},
129+
{
130+
"description": "single dot",
131+
"data": ".",
132+
"valid": false
128133
}
129134
]
130135
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@
331331
"description": "empty string",
332332
"data": "",
333333
"valid": false
334+
},
335+
{
336+
"description": "single dot",
337+
"data": ".",
338+
"valid": false
334339
}
335340
]
336341
}

tests/draft4/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@
117117
"description": "empty string",
118118
"data": "",
119119
"valid": false
120+
},
121+
{
122+
"description": "single dot",
123+
"data": ".",
124+
"valid": false
120125
}
121126
]
122127
}

tests/draft6/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@
117117
"description": "empty string",
118118
"data": "",
119119
"valid": false
120+
},
121+
{
122+
"description": "single dot",
123+
"data": ".",
124+
"valid": false
120125
}
121126
]
122127
}

tests/draft7/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@
117117
"description": "empty string",
118118
"data": "",
119119
"valid": false
120+
},
121+
{
122+
"description": "single dot",
123+
"data": ".",
124+
"valid": false
120125
}
121126
]
122127
}

tests/draft7/optional/format/idn-hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,11 @@
323323
"description": "empty string",
324324
"data": "",
325325
"valid": false
326+
},
327+
{
328+
"description": "single dot",
329+
"data": ".",
330+
"valid": false
326331
}
327332
]
328333
}

0 commit comments

Comments
 (0)