public function validate($subject): bool
    {
        $propertyNames = \array_keys($subject);
        foreach ($propertyNames as $propertyName) {
            $nodeValidator = new NodeValidator($this->schema['propertyNames'], $this->rootSchema);
            if (!$nodeValidator->validate($propertyName)) {
                return false;
            }
        }
        return true;
    }