1 | import { ObjectElement } from '@swagger-api/apidom-core';
|
---|
2 | class Components extends ObjectElement {
|
---|
3 | constructor(content, meta, attributes) {
|
---|
4 | super(content, meta, attributes);
|
---|
5 | this.element = 'components';
|
---|
6 | }
|
---|
7 | get schemas() {
|
---|
8 | return this.get('schemas');
|
---|
9 | }
|
---|
10 | set schemas(schemas) {
|
---|
11 | this.set('schemas', schemas);
|
---|
12 | }
|
---|
13 | get responses() {
|
---|
14 | return this.get('responses');
|
---|
15 | }
|
---|
16 | set responses(responses) {
|
---|
17 | this.set('responses', responses);
|
---|
18 | }
|
---|
19 | get parameters() {
|
---|
20 | return this.get('parameters');
|
---|
21 | }
|
---|
22 | set parameters(parameters) {
|
---|
23 | this.set('parameters', parameters);
|
---|
24 | }
|
---|
25 | get examples() {
|
---|
26 | return this.get('examples');
|
---|
27 | }
|
---|
28 | set examples(examples) {
|
---|
29 | this.set('examples', examples);
|
---|
30 | }
|
---|
31 | get requestBodies() {
|
---|
32 | return this.get('requestBodies');
|
---|
33 | }
|
---|
34 | set requestBodies(requestBodies) {
|
---|
35 | this.set('requestBodies', requestBodies);
|
---|
36 | }
|
---|
37 | get headers() {
|
---|
38 | return this.get('headers');
|
---|
39 | }
|
---|
40 | set headers(headers) {
|
---|
41 | this.set('headers', headers);
|
---|
42 | }
|
---|
43 | get securitySchemes() {
|
---|
44 | return this.get('securitySchemes');
|
---|
45 | }
|
---|
46 | set securitySchemes(securitySchemes) {
|
---|
47 | this.set('securitySchemes', securitySchemes);
|
---|
48 | }
|
---|
49 | get links() {
|
---|
50 | return this.get('links');
|
---|
51 | }
|
---|
52 | set links(links) {
|
---|
53 | this.set('links', links);
|
---|
54 | }
|
---|
55 | get callbacks() {
|
---|
56 | return this.get('callbacks');
|
---|
57 | }
|
---|
58 | set callbacks(callbacks) {
|
---|
59 | this.set('callbacks', callbacks);
|
---|
60 | }
|
---|
61 | }
|
---|
62 | export default Components; |
---|