swagger-axios-codegen
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -0,0 +0,0 @@ export interface ISwaggerOptions { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=baseInterfaces.js.map |
@@ -0,0 +0,0 @@ import { IDefinitionProperties } from "../swaggerInterfaces"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IEnumDef } from "../baseInterfaces"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IComponents } from '../swaggerInterfaces'; |
@@ -9,6 +9,11 @@ "use strict"; | ||
let definitionEnums = {}; | ||
if (!definitions || !definitions.schemas) { | ||
definitions = { | ||
schemas: {} | ||
}; | ||
} | ||
for (const [k, v] of Object.entries(definitions.schemas)) { | ||
let className = utils_1.refClassName(k); | ||
let result = null; | ||
// is an enum definition,just in swagger openAPI v2 | ||
// is an enum definition,just in swagger openAPI v2 | ||
if (v.enum) { | ||
@@ -18,3 +23,3 @@ const enumDef = createDefinitionEnum_1.createDefinitionEnum(className, v.enum, v.type); | ||
name: enumDef.name, | ||
value: enumDef, | ||
value: enumDef | ||
}; | ||
@@ -21,0 +26,0 @@ } |
@@ -0,0 +0,0 @@ import { IDefinitionProperty } from "../swaggerInterfaces"; |
@@ -0,0 +0,0 @@ "use strict"; |
"use strict"; | ||
//# sourceMappingURL=consts.js.map |
@@ -0,0 +0,0 @@ import { IDefinitionProperties } from "../swaggerInterfaces"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IEnumDef } from "../baseInterfaces"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IDefinitions } from '../swaggerInterfaces'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IDefinitionProperty } from "../swaggerInterfaces"; |
@@ -0,0 +0,0 @@ "use strict"; |
import { ISwaggerOptions } from './baseInterfaces'; | ||
export declare function codegen(params: ISwaggerOptions): Promise<void>; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IParameter } from '../swaggerInterfaces'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IRequestMethod } from '../swaggerInterfaces'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IPaths } from '../swaggerInterfaces'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface ISwaggerSource { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=swaggerInterfaces.js.map |
@@ -0,0 +0,0 @@ import { IPropDef, ISwaggerOptions } from "./baseInterfaces"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { IDefinitionClass, IDefinitionEnum } from "./baseInterfaces"; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "swagger-axios-codegen", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"main": "./dist/index", | ||
@@ -5,0 +5,0 @@ "typings": "./dist/", |
Sorry, the diff of this file is not supported yet
126549
66
2097