UNPKG

ng-openapi-gen

Version:
21 lines 744 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Property = void 0; const gen_utils_1 = require("./gen-utils"); /** * An object property */ class Property { constructor(model, name, schema, required, options, openApi) { this.model = model; this.name = name; this.schema = schema; this.required = required; this.type = (0, gen_utils_1.tsType)(this.schema, options, openApi, model); this.identifier = (0, gen_utils_1.escapeId)(this.name); const description = schema.description || ''; this.tsComments = (0, gen_utils_1.tsComments)(description, 1, schema.deprecated); } } exports.Property = Property; //# sourceMappingURL=property.js.map