/* Generated from Java with JSweet 2.3.7 - http://www.jsweet.org */
import { ValidationProblemSeverity } from '../models/ValidationProblemSeverity';
/**
 * A default severity registry.  Sets all spec-mandated validation rules to "medium" severity.  All
 * other rules are ignored.
 *
 * @author eric.wittmann@gmail.com
 * @class
 */
var DefaultSeverityRegistry = /** @class */ (function () {
    function DefaultSeverityRegistry() {
    }
    /**
     * @see io.apicurio.datamodels.core.validation.IValidationSeverityRegistry#lookupSeverity(io.apicurio.datamodels.core.validation.ValidationRuleMetaData)
     * @param {ValidationRuleMetaData} rule
     * @return {ValidationProblemSeverity}
     */
    DefaultSeverityRegistry.prototype.lookupSeverity = function (rule) {
        if (rule.specMandated) {
            return ValidationProblemSeverity.medium;
        }
        return ValidationProblemSeverity.ignore;
    };
    return DefaultSeverityRegistry;
}());
export { DefaultSeverityRegistry };
DefaultSeverityRegistry["__class"] = "io.apicurio.datamodels.core.validation.DefaultSeverityRegistry";
DefaultSeverityRegistry["__interfaces"] = ["io.apicurio.datamodels.core.validation.IValidationSeverityRegistry"];
//# sourceMappingURL=DefaultSeverityRegistry.js.map