Merging enums and input types

I am using federation v2. I have one enum type shared between two subgraphs. According to docs composition of supergraph schema will merge both enums and contains all values from both subgraphs. But supergraph schema is having only common values present in subgraphs.

Input:

subgraph schema 1

enum Color {
  RED
  GREEN
  BLUE
}

subgraph schema 2:

enum Color {
  RED
  CYAN
  MAGENTA
  YELLOW
}

supergraph schema generated:

enum {
  RED
}

supergraph schema expected:

enum Color {
  RED
  BLUE
  GREEN
  CYAN
  MAGENTA
  YELLOW
}

And if both enums don’t have any common values then composition throws error like

None of the values of enum type "Color" are defined consistently in all the subgraphs defining that type. As only values common to all subgraphs are merged, this would result in an empty type.

Same is happening with input types.
For composing supergraph sdl I am using IntrospectAndCompose API.