(f) fixed correct getting options in command
@@ -108,6 +108,9 @@ class Option(DictSerializerMixin):
self.type = OptionType(self.type)
self._json.update({"type": self.type.value})
if self._json.get("options"):
+ if all(isinstance(option, dict) for option in self.options):
+ self._json["options"] = [option for option in self.options]
+ else:
self._json["options"] = [option._json for option in self.options]
if self._json.get("choices"):
if isinstance(self._json.get("choices"), dict):
