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 __());
    };
})();
/* Generated from Java with JSweet 2.3.7 - http://www.jsweet.org */
import { Constants } from '../../../Constants';
import { RequiredPropertyValidationRule } from './RequiredPropertyValidationRule';
/**
 * Constructor.
 * @param {ValidationRuleMetaData} ruleInfo
 * @class
 * @extends RequiredPropertyValidationRule
 * @author eric.wittmann@gmail.com
 */
var OasMissingSchemaArrayInformationRule = /** @class */ (function (_super) {
    __extends(OasMissingSchemaArrayInformationRule, _super);
    function OasMissingSchemaArrayInformationRule(ruleInfo) {
        return _super.call(this, ruleInfo) || this;
    }
    /**
     * @see io.apicurio.datamodels.combined.visitors.CombinedAllNodeVisitor#visitSchema(io.apicurio.datamodels.core.models.common.Schema)
     * @param {Schema} node
     */
    OasMissingSchemaArrayInformationRule.prototype.visitSchema = function (node) {
        this.requirePropertyWhen(node, Constants.PROP_ITEMS, Constants.PROP_TYPE, "array", this.map.apply(this));
    };
    /**
     * @see io.apicurio.datamodels.combined.visitors.CombinedAllNodeVisitor#visitAllOfSchema(io.apicurio.datamodels.openapi.models.OasSchema)
     * @param {OasSchema} node
     */
    OasMissingSchemaArrayInformationRule.prototype.visitAllOfSchema = function (node) {
        this.visitSchema(node);
    };
    /**
     * @see io.apicurio.datamodels.combined.visitors.CombinedAllNodeVisitor#visitAnyOfSchema(io.apicurio.datamodels.openapi.v3.models.Oas30Schema.Oas30AnyOfSchema)
     * @param {Oas30Schema.Oas30AnyOfSchema} node
     */
    OasMissingSchemaArrayInformationRule.prototype.visitAnyOfSchema = function (node) {
        this.visitSchema(node);
    };
    /**
     * @see io.apicurio.datamodels.combined.visitors.CombinedAllNodeVisitor#visitOneOfSchema(io.apicurio.datamodels.openapi.v3.models.Oas30Schema.Oas30OneOfSchema)
     * @param {Oas30Schema.Oas30OneOfSchema} node
     */
    OasMissingSchemaArrayInformationRule.prototype.visitOneOfSchema = function (node) {
        this.visitSchema(node);
    };
    /**
     * @see io.apicurio.datamodels.combined.visitors.CombinedAllNodeVisitor#visitNotSchema(io.apicurio.datamodels.openapi.v3.models.Oas30Schema.Oas30NotSchema)
     * @param {Oas30Schema.Oas30NotSchema} node
     */
    OasMissingSchemaArrayInformationRule.prototype.visitNotSchema = function (node) {
        this.visitSchema(node);
    };
    /**
     * @see io.apicurio.datamodels.combined.visitors.CombinedAllNodeVisitor#visitPropertySchema(io.apicurio.datamodels.openapi.models.IOasPropertySchema)
     * @param {*} node
     */
    OasMissingSchemaArrayInformationRule.prototype.visitPropertySchema = function (node) {
        this.visitSchema(node);
    };
    /**
     * @see io.apicurio.datamodels.combined.visitors.CombinedAllNodeVisitor#visitItemsSchema(io.apicurio.datamodels.openapi.models.OasSchema)
     * @param {OasSchema} node
     */
    OasMissingSchemaArrayInformationRule.prototype.visitItemsSchema = function (node) {
        this.visitSchema(node);
    };
    /**
     * @see io.apicurio.datamodels.combined.visitors.CombinedAllNodeVisitor#visitAdditionalPropertiesSchema(io.apicurio.datamodels.openapi.models.OasSchema)
     * @param {OasSchema} node
     */
    OasMissingSchemaArrayInformationRule.prototype.visitAdditionalPropertiesSchema = function (node) {
        this.visitSchema(node);
    };
    /**
     * @see io.apicurio.datamodels.combined.visitors.CombinedAllNodeVisitor#visitSchemaDefinition(io.apicurio.datamodels.core.models.common.IDefinition)
     * @param {*} node
     */
    OasMissingSchemaArrayInformationRule.prototype.visitSchemaDefinition = function (node) {
        this.visitSchema(node);
    };
    return OasMissingSchemaArrayInformationRule;
}(RequiredPropertyValidationRule));
export { OasMissingSchemaArrayInformationRule };
OasMissingSchemaArrayInformationRule["__class"] = "io.apicurio.datamodels.core.validation.rules.required.OasMissingSchemaArrayInformationRule";
OasMissingSchemaArrayInformationRule["__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=OasMissingSchemaArrayInformationRule.js.map