ng-openapi-gen
Version:
An OpenAPI 3.0 and 3.1 codegen for Angular 16+
18 lines • 541 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Content = void 0;
const gen_utils_1 = require("./gen-utils");
/**
* Either a request body or response content
*/
class Content {
constructor(mediaType, spec, options, openApi) {
this.mediaType = mediaType;
this.spec = spec;
this.options = options;
this.openApi = openApi;
this.type = (0, gen_utils_1.tsType)(spec.schema, options, openApi);
}
}
exports.Content = Content;
//# sourceMappingURL=content.js.map