Skip to content

Commit e2014db

Browse files
committed
- Removed file type
1 parent 1508588 commit e2014db

File tree

5 files changed

+38
-4
lines changed

5 files changed

+38
-4
lines changed

src/openApi/v2/parser/getMappedType.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { getMappedType } from './getMappedType';
22

33
describe('getMappedType', () => {
44
it('should map types to the basics', () => {
5-
expect(getMappedType('File')).toEqual('binary');
65
expect(getMappedType('file')).toEqual('binary');
76
expect(getMappedType('string')).toEqual('string');
87
expect(getMappedType('date')).toEqual('string');

src/openApi/v2/parser/getMappedType.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const TYPE_MAPPINGS = new Map<string, string>([
2-
['File', 'binary'],
32
['file', 'binary'],
43
['any', 'any'],
54
['object', 'any'],

src/openApi/v3/parser/getMappedType.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { getMappedType } from './getMappedType';
22

33
describe('getMappedType', () => {
44
it('should map types to the basics', () => {
5-
expect(getMappedType('File')).toEqual('binary');
65
expect(getMappedType('file')).toEqual('binary');
76
expect(getMappedType('string')).toEqual('string');
87
expect(getMappedType('date')).toEqual('string');

src/openApi/v3/parser/getMappedType.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const TYPE_MAPPINGS = new Map<string, string>([
2-
['File', 'binary'],
32
['file', 'binary'],
43
['any', 'any'],
54
['object', 'any'],

test/spec/v3.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,6 +2241,44 @@
22412241
"pattern": "^\\w+$"
22422242
}
22432243
}
2244+
},
2245+
"File": {
2246+
"required": [
2247+
"mime"
2248+
],
2249+
"type": "object",
2250+
"properties": {
2251+
"id": {
2252+
"title": "Id",
2253+
"type": "string",
2254+
"readOnly": true,
2255+
"minLength": 1
2256+
},
2257+
"updated_at": {
2258+
"title": "Updated at",
2259+
"type": "string",
2260+
"format": "date-time",
2261+
"readOnly": true
2262+
},
2263+
"created_at": {
2264+
"title": "Created at",
2265+
"type": "string",
2266+
"format": "date-time",
2267+
"readOnly": true
2268+
},
2269+
"mime": {
2270+
"title": "Mime",
2271+
"type": "string",
2272+
"maxLength": 24,
2273+
"minLength": 1
2274+
},
2275+
"file": {
2276+
"title": "File",
2277+
"type": "string",
2278+
"readOnly": true,
2279+
"format": "uri"
2280+
}
2281+
}
22442282
}
22452283
}
22462284
}

0 commit comments

Comments
 (0)