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:
385 bytes
|
Line | |
---|
1 | import { ObjectElement } from '@swagger-api/apidom-core';
|
---|
2 | class Reference extends ObjectElement {
|
---|
3 | constructor(content, meta, attributes) {
|
---|
4 | super(content, meta, attributes);
|
---|
5 | this.element = 'reference';
|
---|
6 | this.classes.push('openapi-reference');
|
---|
7 | }
|
---|
8 | get $ref() {
|
---|
9 | return this.get('$ref');
|
---|
10 | }
|
---|
11 | set $ref($ref) {
|
---|
12 | this.set('$ref', $ref);
|
---|
13 | }
|
---|
14 | }
|
---|
15 | export default Reference; |
---|
Note:
See
TracBrowser
for help on using the repository browser.