[d24f17c] | 1 | import { ObjectElement } from '@swagger-api/apidom-core';
|
---|
| 2 | // eslint-disable-next-line @typescript-eslint/naming-convention
|
---|
| 3 | class 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 | }
|
---|
| 58 | export default OpenApi3_0; |
---|