1 | import { ObjectElement } from '@swagger-api/apidom-core';
|
---|
2 | // eslint-disable-next-line @typescript-eslint/naming-convention
|
---|
3 | class OpenApi3_1 extends ObjectElement {
|
---|
4 | constructor(content, meta, attributes) {
|
---|
5 | super(content, meta, attributes);
|
---|
6 | this.element = 'openApi3_1';
|
---|
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 jsonSchemaDialect() {
|
---|
22 | return this.get('jsonSchemaDialect');
|
---|
23 | }
|
---|
24 | set jsonSchemaDialect(jsonSchemaDialect) {
|
---|
25 | this.set('jsonSchemaDialect', jsonSchemaDialect);
|
---|
26 | }
|
---|
27 | get servers() {
|
---|
28 | return this.get('servers');
|
---|
29 | }
|
---|
30 | set servers(servers) {
|
---|
31 | this.set('servers', servers);
|
---|
32 | }
|
---|
33 | get paths() {
|
---|
34 | return this.get('paths');
|
---|
35 | }
|
---|
36 | set paths(paths) {
|
---|
37 | this.set('paths', paths);
|
---|
38 | }
|
---|
39 | get components() {
|
---|
40 | return this.get('components');
|
---|
41 | }
|
---|
42 | set components(components) {
|
---|
43 | this.set('components', components);
|
---|
44 | }
|
---|
45 | get security() {
|
---|
46 | return this.get('security');
|
---|
47 | }
|
---|
48 | set security(security) {
|
---|
49 | this.set('security', security);
|
---|
50 | }
|
---|
51 | get tags() {
|
---|
52 | return this.get('tags');
|
---|
53 | }
|
---|
54 | set tags(tags) {
|
---|
55 | this.set('tags', tags);
|
---|
56 | }
|
---|
57 | get externalDocs() {
|
---|
58 | return this.get('externalDocs');
|
---|
59 | }
|
---|
60 | set externalDocs(externalDocs) {
|
---|
61 | this.set('externalDocs', externalDocs);
|
---|
62 | }
|
---|
63 | get webhooks() {
|
---|
64 | return this.get('webhooks');
|
---|
65 | }
|
---|
66 | set webhooks(webhooks) {
|
---|
67 | this.set('webhooks', webhooks);
|
---|
68 | }
|
---|
69 | }
|
---|
70 | export default OpenApi3_1; |
---|