docs(xo-server-test-plugin): explain configurationPresets

This commit is contained in:
Julien Fontanet 2023-08-03 10:21:15 +02:00
parent fb04d3d25d
commit 606e3c4ce5

View File

@ -25,6 +25,15 @@ exports.configurationSchema = {
required: ['foo'],
}
// This (optional) dictionary provides example configurations that can be used to help
// configuring this plugin.
//
// The keys are the preset names, and the values are subset of the configuration.
exports.configurationPresets = {
'preset 1': { foo: 'foo value 1' },
'preset 2': { foo: 'foo value 2' },
}
// This (optional) schema is used to test the configuration
// of the plugin.
exports.testSchema = {