private void validateEnumType(final ErrorHandler errorHandler, final Deque<String> path, final EnumType type)
    {
        if (type.sinceVersion() > version)
        {
            reportError(errorHandler, path, type.name(), type.sinceVersion());
        }

        path.addLast(type.name());

        for (final EnumType.ValidValue validValue : type.validValues())
        {
            if (validValue.sinceVersion() > version)
            {
                reportError(errorHandler, path, validValue.name(), validValue.sinceVersion());
            }
        }

        path.removeLast();
    }
Validate the message schema and delegate warnings and errors to the supplied {@link ErrorHandler}.

@param errorHandler for delegating warnings and errors.
sbe-tool/src/main/java/uk/co/real_logic/sbe/xml/MessageSchema.java