ng-openapi-gen
Version:
An OpenAPI 3.0 and 3.1 codegen for Angular 16+
18 lines • 546 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequestBody = void 0;
const gen_utils_1 = require("./gen-utils");
/**
* Describes a request body
*/
class RequestBody {
constructor(spec, content, options) {
this.spec = spec;
this.content = content;
this.options = options;
this.tsComments = (0, gen_utils_1.tsComments)(spec.description, 2);
this.required = spec.required === true;
}
}
exports.RequestBody = RequestBody;
//# sourceMappingURL=request-body.js.map