public function createNewResourceDocumentValidator($document, $expectedType, $clientIds)
    {
        $store = $this->container->make(StoreInterface::class);
        $errors = $this->createErrorTranslator();

        return new Validation\Spec\CreateResourceValidator(
            $store,
            $errors,
            $document,
            $expectedType,
            $clientIds
        );
    }
public function createNewResourceDocumentValidator($document, $expectedType, $clientIds)
    {
        $store = $this->container->make(StoreInterface::class);
        $errors = $this->createErrorTranslator();

        return new Validation\Spec\CreateResourceValidator(
            $store,
            $errors,
            $document,
            $expectedType,
            $clientIds
        );
    }
public function createNewResourceDocumentValidator ( $ document , $ expectedType , $ clientIds ) { $ store = $ this -> container -> make ( StoreInterface :: class ) ; $ errors = $ this -> createErrorTranslator ( ) ; return new Validation \ Spec \ CreateResourceValidator ( $ store , $ errors , $ document , $ expectedType , $ clientIds ) ; }
Create a validator to check that a resource document complies with the JSON API specification.

@param object $document
@param string $expectedType
@param bool $clientIds
whether client ids are supported.
@return Validation\Spec\CreateResourceValidator
Create a validator to check that a resource document complies with the JSON API specification .