package.cjs.refractor.visitors.SpecificationExtensionVisitor.cjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apidom-ns-openapi-3-0 Show documentation
Show all versions of apidom-ns-openapi-3-0 Show documentation
OpenAPI 3.0.x namespace for ApiDOM.
"use strict";
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
exports.__esModule = true;
exports.default = void 0;
var _apidomCore = require("@swagger-api/apidom-core");
var _SpecificationVisitor = _interopRequireDefault(require("./SpecificationVisitor.cjs"));
class SpecificationExtensionVisitor extends _SpecificationVisitor.default {
MemberElement(memberElement) {
this.element = (0, _apidomCore.cloneDeep)(memberElement);
this.element.classes.push('specification-extension');
return _apidomCore.BREAK;
}
}
var _default = exports.default = SpecificationExtensionVisitor;