Skip to content

Commit 80fe2db

Browse files
test duration format 'element without unit'
1 parent 38ea151 commit 80fe2db

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@
125125
"description": "invalid non-ASCII '২' (a Bengali 2)",
126126
"data": "P২Y",
127127
"valid": false
128+
},
129+
{
130+
"description": "element without unit",
131+
"data": "P1",
132+
"valid": false
128133
}
129134
]
130135
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@
125125
"description": "invalid non-ASCII '২' (a Bengali 2)",
126126
"data": "P২Y",
127127
"valid": false
128+
},
129+
{
130+
"description": "element without unit",
131+
"data": "P1",
132+
"valid": false
128133
}
129134
]
130135
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@
125125
"description": "invalid non-ASCII '২' (a Bengali 2)",
126126
"data": "P২Y",
127127
"valid": false
128+
},
129+
{
130+
"description": "element without unit",
131+
"data": "P1",
132+
"valid": false
128133
}
129134
]
130135
}

0 commit comments

Comments
 (0)