Skip to content

Commit 42bed9d

Browse files
committed
Remove format from other tests
1 parent 01f9f5c commit 42bed9d

File tree

7 files changed

+10
-32
lines changed

7 files changed

+10
-32
lines changed

test/combination_keywords.test.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ test('iterates allOfs', function(assert) {
1717
required: ['foo'],
1818
properties: {
1919
foo: {
20-
type: 'integer',
21-
format: 'int64'
20+
type: 'integer'
2221
}
2322
}
2423
},
2524
{
2625
allOf: [
2726
{
28-
type: 'number',
29-
format: 'double'
27+
type: 'number'
3028
}
3129
]
3230
}
@@ -43,16 +41,14 @@ test('iterates allOfs', function(assert) {
4341
required: ['foo'],
4442
properties: {
4543
foo: {
46-
type: 'integer',
47-
format: 'int64'
44+
type: 'integer'
4845
}
4946
}
5047
},
5148
{
5249
allOf: [
5350
{
54-
type: 'number',
55-
format: 'double'
51+
type: 'number'
5652
}
5753
]
5854
}
@@ -207,7 +203,6 @@ test('converts types in not', function(assert) {
207203
properties: {
208204
not: {
209205
type: 'string',
210-
format: 'password',
211206
minLength: 8
212207
}
213208
}
@@ -221,7 +216,6 @@ test('converts types in not', function(assert) {
221216
properties: {
222217
not: {
223218
type: 'string',
224-
format: 'password',
225219
minLength: 8
226220
}
227221
}
@@ -241,7 +235,6 @@ test('converts types in not', function(assert) {
241235
schema = {
242236
not: {
243237
type: 'string',
244-
format: 'password',
245238
minLength: 8
246239
}
247240
};
@@ -252,7 +245,6 @@ test('converts types in not', function(assert) {
252245
$schema: 'http://json-schema.org/draft-04/schema#',
253246
not: {
254247
type: 'string',
255-
format: 'password',
256248
minLength: 8
257249
}
258250
};

test/items.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ test('items', function(assert) {
1414
type: 'array',
1515
items: {
1616
type: 'string',
17-
format: 'date-time',
1817
example: '2017-01-01T12:34:56Z'
1918
}
2019
};
@@ -25,8 +24,7 @@ test('items', function(assert) {
2524
$schema: 'http://json-schema.org/draft-04/schema#',
2625
type: 'array',
2726
items: {
28-
type: 'string',
29-
format: 'date-time'
27+
type: 'string'
3028
}
3129
};
3230

test/properties.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ test('additionalProperties is an object', function(assert) {
134134
type: 'object',
135135
properties: {
136136
foo: {
137-
type: 'string',
138-
format: 'date-time'
137+
type: 'string'
139138
}
140139
}
141140
}
@@ -155,8 +154,7 @@ test('additionalProperties is an object', function(assert) {
155154
type: 'object',
156155
properties: {
157156
foo: {
158-
type: 'string',
159-
format: 'date-time'
157+
type: 'string'
160158
}
161159
}
162160
}

test/schemas/schema-1-expected.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"cats": {
99
"type": "array",
1010
"items": {
11-
"type": "integer",
12-
"format": "int64"
11+
"type": "integer"
1312
}
1413
}
1514
}
@@ -20,8 +19,7 @@
2019
"dogs": {
2120
"type": "array",
2221
"items": {
23-
"type": "integer",
24-
"format": "int64"
22+
"type": "integer"
2523
}
2624
}
2725
}
@@ -118,4 +116,3 @@
118116
],
119117
"$schema": "http://json-schema.org/draft-04/schema#"
120118
}
121-

test/schemas/schema-1.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"type": "array",
1010
"items": {
1111
"type": "integer",
12-
"format": "int64",
1312
"example": [
1413
1
1514
]
@@ -24,7 +23,6 @@
2423
"type": "array",
2524
"items": {
2625
"type": "integer",
27-
"format": "int64",
2826
"example": [
2927
1
3028
]

test/schemas/schema-2-invalid-type.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"type": "array",
1010
"items": {
1111
"type": "integer",
12-
"format": "int64",
1312
"example": [
1413
1
1514
]
@@ -24,7 +23,6 @@
2423
"type": "array",
2524
"items": {
2625
"type": "integer",
27-
"format": "int64",
2826
"example": [
2927
1
3028
]

test/unsupported_properties.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ test('remove writeOnly by default', function(assert) {
110110
properties: {
111111
test: {
112112
type: 'string',
113-
format: 'password',
114113
writeOnly: true
115114
}
116115
}
@@ -123,8 +122,7 @@ test('remove writeOnly by default', function(assert) {
123122
type: 'object',
124123
properties: {
125124
test: {
126-
type: 'string',
127-
format: 'password'
125+
type: 'string'
128126
}
129127
}
130128
};
@@ -301,4 +299,3 @@ test('retaining fields', function(assert) {
301299

302300
assert.deepEqual(result, expected, 'example and writeOnly removed');
303301
});
304-

0 commit comments

Comments
 (0)