Files
appium/packages/schema
Jonathan Lipps ea00e3aa18 chore: publish
- appium@2.16.0
 - @appium/base-driver@9.16.0
 - @appium/base-plugin@2.3.1
 - @appium/docutils@1.0.30
 - @appium/driver-test-support@0.7.5
 - @appium/eslint-config-appium-ts@1.0.3
 - @appium/execute-driver-plugin@4.0.2
 - @appium/fake-driver@5.7.1
 - @appium/fake-plugin@3.2.1
 - @appium/images-plugin@3.0.28
 - @appium/opencv@3.0.8
 - @appium/plugin-test-support@0.3.50
 - @appium/schema@0.8.0
 - @appium/support@6.0.4
 - @appium/test-support@3.1.4
 - @appium/types@0.25.0
 - @appium/universal-xml-plugin@1.0.28
2025-02-19 12:15:46 -08:00
..
2025-02-19 12:15:46 -08:00
2025-02-19 12:15:46 -08:00

@appium/schema

JSON schema for Appium configuration files

Description

This package is used internally by Appium, but can also be used to validate Appium configuration files in other contexts.

Install

npm i @appium/schema

Usage

The schema is exported as a JS object:

const { AppiumConfigJsonSchema } = require('@appium/schema');

It is also provided as a JSON file (since this is a JSON schema, after all):

const schema = require('@appium/schema/lib/appium-config.schema.json');

See Also

@appium/types exports a TypeScript type AppiumConfig (generated from this package) for typesafe configuration objects; this may be useful if your Appium configuration is written in JS (e.g., .appiumrc.js). Example:

// @ts-check
/** @type {import('@appium/types').AppiumConfig} */
module.exports = {
  server: {
    port: 1234,
    host: '127.0.0.1'
  }
}

Notes

lib/appium-config.schema.json is generated by this package from lib/appium-config-schema.js (the single source of truth), but is under version control to avoid chicken-or-egg build problems.

License

Apache-2.0