mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Removed file type
This commit is contained in:
parent
1508588e6f
commit
e2014db63a
@ -2,7 +2,6 @@ import { getMappedType } from './getMappedType';
|
||||
|
||||
describe('getMappedType', () => {
|
||||
it('should map types to the basics', () => {
|
||||
expect(getMappedType('File')).toEqual('binary');
|
||||
expect(getMappedType('file')).toEqual('binary');
|
||||
expect(getMappedType('string')).toEqual('string');
|
||||
expect(getMappedType('date')).toEqual('string');
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
const TYPE_MAPPINGS = new Map<string, string>([
|
||||
['File', 'binary'],
|
||||
['file', 'binary'],
|
||||
['any', 'any'],
|
||||
['object', 'any'],
|
||||
|
||||
@ -2,7 +2,6 @@ import { getMappedType } from './getMappedType';
|
||||
|
||||
describe('getMappedType', () => {
|
||||
it('should map types to the basics', () => {
|
||||
expect(getMappedType('File')).toEqual('binary');
|
||||
expect(getMappedType('file')).toEqual('binary');
|
||||
expect(getMappedType('string')).toEqual('string');
|
||||
expect(getMappedType('date')).toEqual('string');
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
const TYPE_MAPPINGS = new Map<string, string>([
|
||||
['File', 'binary'],
|
||||
['file', 'binary'],
|
||||
['any', 'any'],
|
||||
['object', 'any'],
|
||||
|
||||
@ -2241,6 +2241,44 @@
|
||||
"pattern": "^\\w+$"
|
||||
}
|
||||
}
|
||||
},
|
||||
"File": {
|
||||
"required": [
|
||||
"mime"
|
||||
],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string",
|
||||
"readOnly": true,
|
||||
"minLength": 1
|
||||
},
|
||||
"updated_at": {
|
||||
"title": "Updated at",
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"readOnly": true
|
||||
},
|
||||
"created_at": {
|
||||
"title": "Created at",
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"readOnly": true
|
||||
},
|
||||
"mime": {
|
||||
"title": "Mime",
|
||||
"type": "string",
|
||||
"maxLength": 24,
|
||||
"minLength": 1
|
||||
},
|
||||
"file": {
|
||||
"title": "File",
|
||||
"type": "string",
|
||||
"readOnly": true,
|
||||
"format": "uri"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user