source: node_modules/@swagger-api/apidom-ns-openapi-3-0/es/elements/Reference.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: 385 bytes
Line 
1import { ObjectElement } from '@swagger-api/apidom-core';
2class 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}
15export default Reference;
Note: See TracBrowser for help on using the repository browser.