Issue when deploying custom content with remote

  
confluence:customContent:
    - key: customC1
      title: Custom
      resource: mainPage
      icon: resource:images;icon.png
      resolver:
        endpoint: remote
      supportedContainerTypes:
        - space
      indexing: true
      migratedFromConnect: true

trying to use remote endpoint in my customContent i’m getting this errors
259:2 error confluence:customContent should NOT have additional property ‘resource’ valid-document-required

259:2 error confluence:customContent should NOT have additional property ‘resolver’ valid-document-required

259:2 error confluence:customContent should NOT have additional property ‘migratedFromConnect’ valid-document-required

259:2 error confluence:customContent property resolver should NOT have additional property ‘endpoint’ valid-document-required

259:2 error confluence:customContent required properties are ‘title, supportedContainerTypes, function, key’ or ‘title, supportedContainerTypes, resource, key’ valid-document-required

any one have an idea ?