- Removed file type

This commit is contained in:
Ferdi Koomen 2021-12-22 17:33:50 +01:00
parent 1508588e6f
commit e2014db63a
5 changed files with 38 additions and 4 deletions

View File

@ -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');

View File

@ -1,5 +1,4 @@
const TYPE_MAPPINGS = new Map<string, string>([
['File', 'binary'],
['file', 'binary'],
['any', 'any'],
['object', 'any'],

View File

@ -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');

View File

@ -1,5 +1,4 @@
const TYPE_MAPPINGS = new Map<string, string>([
['File', 'binary'],
['file', 'binary'],
['any', 'any'],
['object', 'any'],

View File

@ -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"
}
}
}
}
}