source: node_modules/@swagger-api/apidom-ns-openapi-3-0/cjs/elements/Link.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: 1.6 KB
Line 
1"use strict";
2
3exports.__esModule = true;
4exports.default = void 0;
5var _apidomCore = require("@swagger-api/apidom-core");
6class Link extends _apidomCore.ObjectElement {
7 constructor(content, meta, attributes) {
8 super(content, meta, attributes);
9 this.element = 'link';
10 }
11 get operationRef() {
12 return this.get('operationRef');
13 }
14 set operationRef(operationRef) {
15 this.set('operationRef', operationRef);
16 }
17 get operationId() {
18 return this.get('operationId');
19 }
20 set operationId(operationId) {
21 this.set('operationId', operationId);
22 }
23 get operation() {
24 if ((0, _apidomCore.isStringElement)(this.operationRef)) {
25 var _this$operationRef;
26 return (_this$operationRef = this.operationRef) == null ? void 0 : _this$operationRef.meta.get('operation');
27 }
28 if ((0, _apidomCore.isStringElement)(this.operationId)) {
29 var _this$operationId;
30 return (_this$operationId = this.operationId) == null ? void 0 : _this$operationId.meta.get('operation');
31 }
32 return undefined;
33 }
34 set operation(operation) {
35 this.set('operation', operation);
36 }
37 get parameters() {
38 return this.get('parameters');
39 }
40 set parameters(parameters) {
41 this.set('parameters', parameters);
42 }
43 get requestBody() {
44 return this.get('requestBody');
45 }
46 set requestBody(requestBody) {
47 this.set('requestBody', requestBody);
48 }
49 get description() {
50 return this.get('description');
51 }
52 set description(description) {
53 this.set('description', description);
54 }
55 get server() {
56 return this.get('server');
57 }
58 set server(server) {
59 this.set('server', server);
60 }
61}
62var _default = exports.default = Link;
Note: See TracBrowser for help on using the repository browser.