scripts/generate-schema.js/optionToSchema
function optionToSchema(option) {
  return {
    description: option.description,
    default: option.default,
    ...(option.array ? wrapWithArraySchema : identity)(
      option.type === "choice"
        ? { oneOf: option.choices.map(choiceToSchema) }
        : { type: optionTypeToSchemaType(option.type) }
    ),
  };
}