0.5.0 • Published 5 months ago

@appium/schema v0.5.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

@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

0.5.0

5 months ago

0.4.2

6 months ago

0.4.1

7 months ago

0.4.0

7 months ago

0.3.1

10 months ago

0.3.0

11 months ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.0

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.1.0

1 year ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago