@appium/schema 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/appium-config-schema.d.ts +95 -12
- package/build/appium-config-schema.js +321 -243
- package/build/appium-config-schema.js.map +1 -0
- package/build/index.js +16 -19
- package/build/index.js.map +1 -0
- package/lib/appium-config-schema.js +67 -6
- package/lib/appium-config.schema.json +83 -7
- package/package.json +8 -10
- package/build/lib/appium-config-schema.js +0 -250
- package/build/lib/index.js +0 -21
|
@@ -3,11 +3,20 @@ export namespace AppiumConfigJsonSchema {
|
|
|
3
3
|
export const additionalProperties: false;
|
|
4
4
|
export const description: "A schema for Appium configuration files";
|
|
5
5
|
export namespace properties {
|
|
6
|
-
namespace
|
|
6
|
+
export namespace $schema_1 {
|
|
7
|
+
const description_1: "The JSON schema for this file";
|
|
8
|
+
export { description_1 as description };
|
|
9
|
+
const _default: "https://raw.githubusercontent.com/appium/appium/master/packages/schema/lib/appium-config.schema.json";
|
|
10
|
+
export { _default as default };
|
|
11
|
+
export const type: "string";
|
|
12
|
+
export const format: "uri";
|
|
13
|
+
}
|
|
14
|
+
export { $schema_1 as $schema };
|
|
15
|
+
export namespace server {
|
|
7
16
|
const additionalProperties_1: false;
|
|
8
17
|
export { additionalProperties_1 as additionalProperties };
|
|
9
|
-
const
|
|
10
|
-
export {
|
|
18
|
+
const description_2: "Configuration when running Appium as a server";
|
|
19
|
+
export { description_2 as description };
|
|
11
20
|
const properties_1: {
|
|
12
21
|
readonly address: {
|
|
13
22
|
readonly $comment: "I think hostname covers both DNS and IPv4...could be wrong";
|
|
@@ -110,13 +119,13 @@ export namespace AppiumConfigJsonSchema {
|
|
|
110
119
|
readonly type: "string";
|
|
111
120
|
};
|
|
112
121
|
readonly 'log-filters': {
|
|
113
|
-
readonly $comment: "TODO";
|
|
114
122
|
readonly description: "One or more log filtering rules";
|
|
115
|
-
readonly items: {
|
|
116
|
-
readonly type: "string";
|
|
117
|
-
};
|
|
118
123
|
readonly title: "log-filters config";
|
|
119
124
|
readonly type: "array";
|
|
125
|
+
readonly items: {
|
|
126
|
+
readonly $ref: "#/$defs/logFilter";
|
|
127
|
+
};
|
|
128
|
+
readonly appiumCliTransformer: "json";
|
|
120
129
|
};
|
|
121
130
|
readonly 'log-level': {
|
|
122
131
|
readonly appiumCliDest: "loglevel";
|
|
@@ -202,7 +211,7 @@ export namespace AppiumConfigJsonSchema {
|
|
|
202
211
|
readonly type: "string";
|
|
203
212
|
};
|
|
204
213
|
readonly 'use-drivers': {
|
|
205
|
-
readonly appiumCliDescription: "A list of drivers to activate. Can be a comma-delimited string or path to CSV file. By default, all installed drivers will be activated.";
|
|
214
|
+
readonly appiumCliDescription: "A list of drivers to activate. Can be a comma-delimited string or path to CSV file. By default, all installed drivers will be activated. Windows environments may require wrapping the comma-delimited string with quotes to escape the comma.";
|
|
206
215
|
readonly default: readonly [];
|
|
207
216
|
readonly description: "A list of drivers to activate. By default, all installed drivers will be activated.";
|
|
208
217
|
readonly items: {
|
|
@@ -213,7 +222,7 @@ export namespace AppiumConfigJsonSchema {
|
|
|
213
222
|
readonly uniqueItems: true;
|
|
214
223
|
};
|
|
215
224
|
readonly 'use-plugins': {
|
|
216
|
-
readonly appiumCliDescription: "A list of plugins to activate. Can be a comma-delimited string, path to CSV file, or the string \"all\" to use all installed plugins.";
|
|
225
|
+
readonly appiumCliDescription: "A list of plugins to activate. Can be a comma-delimited string, path to CSV file, or the string \"all\" to use all installed plugins. Windows environments may require wrapping the comma-delimited string with quotes to escape the comma.";
|
|
217
226
|
readonly default: readonly [];
|
|
218
227
|
readonly description: "A list of plugins to activate. To activate all plugins, the value should be an array with a single item \"all\".";
|
|
219
228
|
readonly items: {
|
|
@@ -234,12 +243,86 @@ export namespace AppiumConfigJsonSchema {
|
|
|
234
243
|
};
|
|
235
244
|
export { properties_1 as properties };
|
|
236
245
|
export const title: "server config";
|
|
237
|
-
|
|
246
|
+
const type_1: "object";
|
|
247
|
+
export { type_1 as type };
|
|
238
248
|
}
|
|
239
249
|
}
|
|
240
250
|
const title_1: "Appium Configuration";
|
|
241
251
|
export { title_1 as title };
|
|
242
|
-
const
|
|
243
|
-
export {
|
|
252
|
+
const type_2: "object";
|
|
253
|
+
export { type_2 as type };
|
|
254
|
+
export namespace $defs {
|
|
255
|
+
namespace logFilterText {
|
|
256
|
+
const type_3: "object";
|
|
257
|
+
export { type_3 as type };
|
|
258
|
+
const description_3: "Log filter with plain text";
|
|
259
|
+
export { description_3 as description };
|
|
260
|
+
export namespace properties_2 {
|
|
261
|
+
namespace text {
|
|
262
|
+
const description_4: "Text to match";
|
|
263
|
+
export { description_4 as description };
|
|
264
|
+
const type_4: "string";
|
|
265
|
+
export { type_4 as type };
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
export { properties_2 as properties };
|
|
269
|
+
export const required: readonly ["text"];
|
|
270
|
+
export namespace not {
|
|
271
|
+
const required_1: readonly ["pattern"];
|
|
272
|
+
export { required_1 as required };
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
namespace logFilterRegex {
|
|
276
|
+
const type_5: "object";
|
|
277
|
+
export { type_5 as type };
|
|
278
|
+
const description_5: "Log filter with regular expression";
|
|
279
|
+
export { description_5 as description };
|
|
280
|
+
export namespace properties_3 {
|
|
281
|
+
namespace pattern {
|
|
282
|
+
const description_6: "Regex pattern to match";
|
|
283
|
+
export { description_6 as description };
|
|
284
|
+
const type_6: "string";
|
|
285
|
+
export { type_6 as type };
|
|
286
|
+
const format_1: "regex";
|
|
287
|
+
export { format_1 as format };
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
export { properties_3 as properties };
|
|
291
|
+
const required_2: readonly ["pattern"];
|
|
292
|
+
export { required_2 as required };
|
|
293
|
+
export namespace not_1 {
|
|
294
|
+
const required_3: readonly ["text"];
|
|
295
|
+
export { required_3 as required };
|
|
296
|
+
}
|
|
297
|
+
export { not_1 as not };
|
|
298
|
+
}
|
|
299
|
+
namespace logFilter {
|
|
300
|
+
const type_7: "object";
|
|
301
|
+
export { type_7 as type };
|
|
302
|
+
const description_7: "Log filtering rule";
|
|
303
|
+
export { description_7 as description };
|
|
304
|
+
export const allOf: readonly [{
|
|
305
|
+
readonly type: "object";
|
|
306
|
+
readonly properties: {
|
|
307
|
+
readonly replacer: {
|
|
308
|
+
readonly description: "Replacement string for matched text";
|
|
309
|
+
readonly type: "string";
|
|
310
|
+
readonly default: "**SECURE**";
|
|
311
|
+
};
|
|
312
|
+
readonly flags: {
|
|
313
|
+
readonly description: "Matching flags; see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#advanced_searching_with_flags";
|
|
314
|
+
readonly type: "string";
|
|
315
|
+
readonly pattern: "^[igmsduy](,[igmsduy])*$";
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
}, {
|
|
319
|
+
readonly oneOf: readonly [{
|
|
320
|
+
readonly $ref: "#/$defs/logFilterText";
|
|
321
|
+
}, {
|
|
322
|
+
readonly $ref: "#/$defs/logFilterRegex";
|
|
323
|
+
}];
|
|
324
|
+
}];
|
|
325
|
+
}
|
|
326
|
+
}
|
|
244
327
|
}
|
|
245
328
|
//# sourceMappingURL=appium-config-schema.d.ts.map
|