source: node_modules/@swagger-api/apidom-ns-openapi-3-0/cjs/elements/Parameter.cjs@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[d24f17c]1"use strict";
2
3exports.__esModule = true;
4exports.default = void 0;
5var _apidomCore = require("@swagger-api/apidom-core");
6class Parameter extends _apidomCore.ObjectElement {
7 constructor(content, meta, attributes) {
8 super(content, meta, attributes);
9 this.element = 'parameter';
10 }
11 get name() {
12 return this.get('name');
13 }
14 set name(name) {
15 this.set('name', name);
16 }
17 get in() {
18 return this.get('in');
19 }
20 set in(val) {
21 this.set('in', val);
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 get deprecated() {
33 if (this.hasKey('deprecated')) {
34 return this.get('deprecated');
35 }
36 return new _apidomCore.BooleanElement(false);
37 }
38 set deprecated(deprecated) {
39 this.set('deprecated', deprecated);
40 }
41 get allowEmptyValue() {
42 return this.get('allowEmptyValue');
43 }
44 set allowEmptyValue(allowEmptyValue) {
45 this.set('allowEmptyValue', allowEmptyValue);
46 }
47 get style() {
48 return this.get('style');
49 }
50 set style(style) {
51 this.set('style', style);
52 }
53 get explode() {
54 return this.get('explode');
55 }
56 set explode(explode) {
57 this.set('explode', explode);
58 }
59 get allowReserved() {
60 return this.get('allowReserved');
61 }
62 set allowReserved(allowReserved) {
63 this.set('allowReserved', allowReserved);
64 }
65 get schema() {
66 return this.get('schema');
67 }
68 set schema(schema) {
69 this.set('schema', schema);
70 }
71 get example() {
72 return this.get('example');
73 }
74 set example(example) {
75 this.set('example', example);
76 }
77 get examples() {
78 return this.get('examples');
79 }
80 set examples(examples) {
81 this.set('examples', examples);
82 }
83 get contentProp() {
84 return this.get('content');
85 }
86 set contentProp(content) {
87 this.set('content', content);
88 }
89}
90Object.defineProperty(Parameter.prototype, 'description', {
91 get() {
92 return this.get('description');
93 },
94 set(description) {
95 this.set('description', description);
96 },
97 enumerable: true
98});
99var _default = exports.default = Parameter;
Note: See TracBrowser for help on using the repository browser.