code: protected function validateDocumentCompliance($document, ?ValidatorFactoryInterface $validators): void
      {
          $this->passes(
              $this->factory->createNewResourceDocumentValidator(
                  $document,
                  $this->getResourceType(),
                  $validators && $validators->supportsClientIds()
              )
          );
      }
docs: Validate the JSON API document complies with the spec.
  
  @param object $document
  @param ValidatorFactoryInterface|null $validators