Skip to content

Commit ef2542a

Browse files
committed
- Fixed types
1 parent b871eab commit ef2542a

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/openApi/v2/parser/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export enum PrimaryType {
1010
}
1111

1212
export const TYPE_MAPPINGS = new Map<string, PrimaryType>([
13+
['File', PrimaryType.FILE],
1314
['file', PrimaryType.FILE],
1415
['any', PrimaryType.OBJECT],
1516
['object', PrimaryType.OBJECT],

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

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

33
describe('getMappedType', () => {
44
it('should map types to the basics', () => {
5+
expect(getMappedType('File')).toEqual('File');
56
expect(getMappedType('file')).toEqual('File');
67
expect(getMappedType('string')).toEqual('string');
78
expect(getMappedType('date')).toEqual('string');

src/openApi/v3/parser/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export enum PrimaryType {
1010
}
1111

1212
export const TYPE_MAPPINGS = new Map<string, PrimaryType>([
13+
['File', PrimaryType.FILE],
1314
['file', PrimaryType.FILE],
1415
['any', PrimaryType.OBJECT],
1516
['object', PrimaryType.OBJECT],

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

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

33
describe('getMappedType', () => {
44
it('should map types to the basics', () => {
5+
expect(getMappedType('File')).toEqual('File');
56
expect(getMappedType('file')).toEqual('File');
67
expect(getMappedType('string')).toEqual('string');
78
expect(getMappedType('date')).toEqual('string');

0 commit comments

Comments
 (0)