public static Optional<ValidationId> from(String id) {
        // ToDo: Vespa 9 remove support for content-type-removal
        if ("content-type-removal".equals(id)) return from("schema-removal");

        for (ValidationId candidate : ValidationId.values())
            if (id.equals(candidate.toString())) return Optional.of(candidate);
        return Optional.empty();
    }
Returns the validation id from this string.
Use this instead of valueOf to match string on the (canonical) dash-separated form.

@return the matching validation id or empty if none
config-model-api/src/main/java/com/yahoo/config/application/api/ValidationId.java