You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The address field in the Appium config is a string which can be formatted as a hostname or an ipv6 (per the JSON schema formatting parlance). Unfortunately, there seems to be a bug in json-schema-to-typescript where the ipv6 formatter does not translate correctly to a TS string; instead, it outputs {[key: string]: unknown}.
Report bug to upstream
Fix bug, send PR
Update to new release
alternatively:
Implement some sort of workaround for validation; create a new custom formatter in lib/schema/cli-transformers.js and add the appiumCliTransformer prop with the new transformer name to the address object in appium-config-schema.js. It doesn't need to actually transform the value, but it can be used as a validator.
See #18690
The
address
field in the Appium config is a string which can be formatted as ahostname
or anipv6
(per the JSON schema formatting parlance). Unfortunately, there seems to be a bug in json-schema-to-typescript where theipv6
formatter does not translate correctly to a TSstring
; instead, it outputs{[key: string]: unknown}
.alternatively:
lib/schema/cli-transformers.js
and add theappiumCliTransformer
prop with the new transformer name to theaddress
object inappium-config-schema.js
. It doesn't need to actually transform the value, but it can be used as a validator.cc @mykola-mokhnach
The text was updated successfully, but these errors were encountered: