var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import { RequiredPropertyValidationRule } from './RequiredPropertyValidationRule';
/**
 * Constructor.
 * @param {ValidationRuleMetaData} ruleInfo
 * @class
 * @extends RequiredPropertyValidationRule
 * @author eric.wittmann@gmail.com
 */
var OasMissingParameterTypeRule = /** @class */ (function (_super) {
    __extends(OasMissingParameterTypeRule, _super);
    function OasMissingParameterTypeRule(ruleInfo) {
        return _super.call(this, ruleInfo) || this;
    }
    /**
     * @see io.apicurio.datamodels.combined.visitors.CombinedAllNodeVisitor#visitParameter(io.apicurio.datamodels.core.models.common.Parameter)
     * @param {Parameter} node
     */
    OasMissingParameterTypeRule.prototype.visitParameter = function (node) {
        if (this.hasValue(node.$ref)) {
            return;
        }
        var param = node;
        if (!this.equals(param.in, "body")) {
            this.requireProperty(node, "type", this.map("name", node.name));
        }
    };
    return OasMissingParameterTypeRule;
}(RequiredPropertyValidationRule));
export { OasMissingParameterTypeRule };
OasMissingParameterTypeRule["__class"] = "io.apicurio.datamodels.core.validation.rules.required.OasMissingParameterTypeRule";
OasMissingParameterTypeRule["__interfaces"] = ["io.apicurio.datamodels.core.visitors.IVisitor", "io.apicurio.datamodels.asyncapi.v2.visitors.IAai20Visitor", "io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor", "io.apicurio.datamodels.asyncapi.visitors.IAaiVisitor", "io.apicurio.datamodels.openapi.v2.visitors.IOas20Visitor", "io.apicurio.datamodels.openapi.visitors.IOasVisitor"];
//# sourceMappingURL=OasMissingParameterTypeRule.js.map