How to use the apicurio-data-models.ValidationProblemSeverity.ignore function in apicurio-data-models

To help you get started, we’ve selected a few apicurio-data-models examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Apicurio / apicurio-studio / front-end / studio / src / app / pages / settings / validation / validation.page.ts View on Github external
ruleset.getAllRules().forEach( rule => {
                newProfile.severities[rule.code] = ValidationProblemSeverity.ignore;
            });
        } else if (profile.id == -2) { // OpenAPI spec-only
github Apicurio / apicurio-studio / front-end / studio / src / app / services / validation.service.ts View on Github external
Object.getOwnPropertyNames(severities).forEach( key => {
            let value: string = severities[key];
            let severity: ValidationProblemSeverity = ValidationProblemSeverity.low;
            switch (value) {
                case "ignore": severity = ValidationProblemSeverity.ignore; break;
                case "low": severity = ValidationProblemSeverity.low; break;
                case "medium": severity = ValidationProblemSeverity.medium; break;
                case "high": severity = ValidationProblemSeverity.high; break;
            }
            rval[key] = severity;
        });
        return rval;
github Apicurio / apicurio-studio / front-end / studio / src / app / services / validation.service.ts View on Github external
public lookupSeverity(): ValidationProblemSeverity {
        return ValidationProblemSeverity.ignore;
    }
github Apicurio / apicurio-studio / front-end / studio / src / app / pages / settings / validation / _components / profile-editor.component.ts View on Github external
severityOptions(): DropDownOption[] {
        return [
            new Value("None", ValidationProblemSeverity.ignore),
            new Value("Low", ValidationProblemSeverity.low),
            new Value("Medium", ValidationProblemSeverity.medium),
            new Value("High", ValidationProblemSeverity.high)
        ]
    }