main
Last change
on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
825 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 | exports.default = void 0;
|
---|
5 | var _apidomCore = require("@swagger-api/apidom-core");
|
---|
6 | class RequestBody extends _apidomCore.ObjectElement {
|
---|
7 | constructor(content, meta, attributes) {
|
---|
8 | super(content, meta, attributes);
|
---|
9 | this.element = 'requestBody';
|
---|
10 | }
|
---|
11 | get description() {
|
---|
12 | return this.get('description');
|
---|
13 | }
|
---|
14 | set description(description) {
|
---|
15 | this.set('description', description);
|
---|
16 | }
|
---|
17 | get contentProp() {
|
---|
18 | return this.get('content');
|
---|
19 | }
|
---|
20 | set contentProp(content) {
|
---|
21 | this.set('content', content);
|
---|
22 | }
|
---|
23 | get required() {
|
---|
24 | if (this.hasKey('required')) {
|
---|
25 | return this.get('required');
|
---|
26 | }
|
---|
27 | return new _apidomCore.BooleanElement(false);
|
---|
28 | }
|
---|
29 | set required(required) {
|
---|
30 | this.set('required', required);
|
---|
31 | }
|
---|
32 | }
|
---|
33 | var _default = exports.default = RequestBody; |
---|
Note:
See
TracBrowser
for help on using the repository browser.