Trouble with subgraph merging

I’m trying to merge graphql schemas with apollo gateway, but getting this error:

 Input object field "VariantInput.id" is required in some subgraphs but does not appear in all subgraphs: it is required in subgraph "returns" but does not appear in subgraph "ecom"
        Input object field "OrderInput.merchantId" is required in some subgraphs but does not appear in all subgraphs: it is required in subgraph "returns" but does not appear in subgraph "ecom"
        Input object field "OrderInput.merchantName" is required in some subgraphs but does not appear in all subgraphs: it is required in subgraph "returns" but does not appear in subgraph "ecom"

Could it be because of the same input type names?