mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Ready to cleanup the old parser code
This commit is contained in:
parent
6e82ff13a8
commit
121ecd527f
2
src/client/interfaces/Model.d.ts
vendored
2
src/client/interfaces/Model.d.ts
vendored
@ -1,5 +1,6 @@
|
||||
import { ModelProperty } from './ModelProperty';
|
||||
import { Enum } from './Enum';
|
||||
import { EnumValue } from './EnumValue';
|
||||
|
||||
export interface Model {
|
||||
isInterface: boolean;
|
||||
@ -14,5 +15,6 @@ export interface Model {
|
||||
extends: string | null;
|
||||
imports: string[];
|
||||
enums: Enum[];
|
||||
values: EnumValue[];
|
||||
properties: ModelProperty[];
|
||||
}
|
||||
|
||||
5
src/utils/cleanupModels.spec.ts
Normal file
5
src/utils/cleanupModels.spec.ts
Normal file
@ -0,0 +1,5 @@
|
||||
describe('cleanupModels', () => {
|
||||
it('should cleanup models', () => {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
5
src/utils/cleanupServices.spec.ts
Normal file
5
src/utils/cleanupServices.spec.ts
Normal file
@ -0,0 +1,5 @@
|
||||
describe('cleanupServices', () => {
|
||||
it('should cleanup services', () => {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
@ -16,6 +16,7 @@ describe('getSortedModels', () => {
|
||||
description: null,
|
||||
extends: null,
|
||||
imports: [],
|
||||
values: [],
|
||||
properties: [],
|
||||
enums: [],
|
||||
},
|
||||
@ -31,6 +32,7 @@ describe('getSortedModels', () => {
|
||||
description: null,
|
||||
extends: null,
|
||||
imports: [],
|
||||
values: [],
|
||||
properties: [],
|
||||
enums: [],
|
||||
},
|
||||
@ -46,6 +48,7 @@ describe('getSortedModels', () => {
|
||||
description: null,
|
||||
extends: null,
|
||||
imports: [],
|
||||
values: [],
|
||||
properties: [],
|
||||
enums: [],
|
||||
},
|
||||
|
||||
@ -3,9 +3,7 @@ import * as mkdirp from 'mkdirp';
|
||||
import * as rimraf from 'rimraf';
|
||||
import * as fs from 'fs';
|
||||
import { Client } from '../client/interfaces/Client';
|
||||
import { Model } from '../client/interfaces/Model';
|
||||
import { Templates } from './readHandlebarsTemplates';
|
||||
import { Service } from '../client/interfaces/Service';
|
||||
import { Language } from '../index';
|
||||
import * as glob from 'glob';
|
||||
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
import { writeClientIndex } from './writeClientIndex';
|
||||
import * as fs from 'fs';
|
||||
import { Client } from '../client/interfaces/Client';
|
||||
import { Model } from '../client/interfaces/Model';
|
||||
import { Service } from '../client/interfaces/Service';
|
||||
import { Language } from '../index';
|
||||
|
||||
jest.mock('fs');
|
||||
|
||||
@ -22,6 +22,7 @@ describe('writeClientModels', () => {
|
||||
description: null,
|
||||
extends: null,
|
||||
imports: [],
|
||||
values: [],
|
||||
properties: [],
|
||||
enums: [],
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user