What is getDefaultsForSchema and packages/appium/lib/schema folder does or responsible for?

Hello everyone,

I am going down the rabbit hole and found getDefaultsForSchema at init function in the file packages/appium/lib/main.js

I wonder what’s the schema means in this context? I looks like an object of Json. What’s kind of schema is it?


In this context schema defines descriptions of CLI arguments and their types.
This particular helper return default values for various CLI arguments.
There is one common schema for server CLI arguments, but drivers and plugins can define/extend it in their package.json manifests.
Check unit tests for more details.

1 Like