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:
734 bytes
|
Line | |
---|
1 | import { ObjectElement, BooleanElement } from '@swagger-api/apidom-core';
|
---|
2 | class RequestBody extends ObjectElement {
|
---|
3 | constructor(content, meta, attributes) {
|
---|
4 | super(content, meta, attributes);
|
---|
5 | this.element = 'requestBody';
|
---|
6 | }
|
---|
7 | get description() {
|
---|
8 | return this.get('description');
|
---|
9 | }
|
---|
10 | set description(description) {
|
---|
11 | this.set('description', description);
|
---|
12 | }
|
---|
13 | get contentProp() {
|
---|
14 | return this.get('content');
|
---|
15 | }
|
---|
16 | set contentProp(content) {
|
---|
17 | this.set('content', content);
|
---|
18 | }
|
---|
19 | get required() {
|
---|
20 | if (this.hasKey('required')) {
|
---|
21 | return this.get('required');
|
---|
22 | }
|
---|
23 | return new BooleanElement(false);
|
---|
24 | }
|
---|
25 | set required(required) {
|
---|
26 | this.set('required', required);
|
---|
27 | }
|
---|
28 | }
|
---|
29 | export default RequestBody; |
---|
Note:
See
TracBrowser
for help on using the repository browser.