source: node_modules/@swagger-api/apidom-ns-openapi-3-0/es/elements/OpenApi3-0.mjs

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

Initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
1import { ObjectElement } from '@swagger-api/apidom-core';
2// eslint-disable-next-line @typescript-eslint/naming-convention
3class OpenApi3_0 extends ObjectElement {
4 constructor(content, meta, attributes) {
5 super(content, meta, attributes);
6 this.element = 'openApi3_0';
7 this.classes.push('api');
8 }
9 get openapi() {
10 return this.get('openapi');
11 }
12 set openapi(openapi) {
13 this.set('openapi', openapi);
14 }
15 get info() {
16 return this.get('info');
17 }
18 set info(info) {
19 this.set('info', info);
20 }
21 get servers() {
22 return this.get('servers');
23 }
24 set servers(servers) {
25 this.set('servers', servers);
26 }
27 get paths() {
28 return this.get('paths');
29 }
30 set paths(paths) {
31 this.set('paths', paths);
32 }
33 get components() {
34 return this.get('components');
35 }
36 set components(components) {
37 this.set('components', components);
38 }
39 get security() {
40 return this.get('security');
41 }
42 set security(security) {
43 this.set('security', security);
44 }
45 get tags() {
46 return this.get('tags');
47 }
48 set tags(tags) {
49 this.set('tags', tags);
50 }
51 get externalDocs() {
52 return this.get('externalDocs');
53 }
54 set externalDocs(externalDocs) {
55 this.set('externalDocs', externalDocs);
56 }
57}
58export default OpenApi3_0;
Note: See TracBrowser for help on using the repository browser.