UNPKG

openapi-codegen-typescript

Version:

OpenApi codegen for generating types an mocks from swagger json file

10 lines (9 loc) 663 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var parseFormat_1 = require("./parseFormat"); var parseProperty_1 = require("./parseProperty"); var parseRefType_1 = require("./parseRefType"); exports.getStandardString = function (_a) { var propertyName = _a.propertyName, description = _a.description, nullable = _a.nullable, refType = _a.refType, format = _a.format, isArray = _a.isArray; return "" + parseProperty_1.parseProperty({ propertyName: propertyName, description: description, nullable: nullable }) + parseRefType_1.parseRefType(refType) + (isArray ? '[]' : '') + ";" + parseFormat_1.parseFormat(format) + "\n"; };