SellingPlan example violates spec

I tested the “Build a selling plan” example:

  1. exactly as shown: it does work even though the graphql spec says the options must be a string.
  2. If I then change the SellingPlanGroupInput.option to an array with the same single element, it works the same.
  3. If I then add a second element to SellingPlanGroupInput.option, it errors: "Option2 Option2 is required as there is an option2 label defined on the parent selling plan group." on each example
  4. If I then convert the SellingPlanInput.option for each to a 2-element array, it works again.
  5. If I then remove an element so the SellingPlanGroupInput.option is a single element but the sellingPlans have two elements, it errors Option2 Cannot define option2 on this selling plan as there is no label on the parent selling plan group.

So, based on the graphql responses:

  1. the SellingPlanGroupInput.option is not a list of all options as stated in the docs. it is a DESCRIPTION of the selling plan options.
  2. The examples and graphql accept a union String! | [String!] despite the docs which state only an array is allowed.