X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Flibraries%2Fconfig%2Fschema%2Flibraries.schema.yml;fp=web%2Fmodules%2Fcontrib%2Flibraries%2Fconfig%2Fschema%2Flibraries.schema.yml;h=72c4c52f2e80873654a90422578c90d5ae68948f;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/libraries/config/schema/libraries.schema.yml b/web/modules/contrib/libraries/config/schema/libraries.schema.yml new file mode 100644 index 000000000..72c4c52f2 --- /dev/null +++ b/web/modules/contrib/libraries/config/schema/libraries.schema.yml @@ -0,0 +1,53 @@ +# Configuration schema for the Libraries API module. + +# Base configuration schema +libraries.settings: + type: config_object + label: 'Libraries API settings' + mapping: + definition: + type: mapping + label: 'Library definition settings' + mapping: + local: + type: mapping + label: 'Local' + mapping: + path: + type: path + label: 'Local path' + remote: + type: mapping + title: 'Remote' + mapping: + enable: + type: boolean + label: 'Enable remote fetching of library definitions' + urls: + type: sequence + label: 'A list of remote library registry URLs' + sequence: + type: uri + label: 'The URL of a remote library registry' + global_locators: + type: sequence + title: 'Global library locators' + sequence: + type: mapping + title: 'Global locator plugins' + mapping: + id: + type: string + title: 'The locator plugin id' + configuration: + type: libraries.locator.[%parent.id] + title: 'The plugin configuration' + +# Dynamic locator plugin schema +libraries.locator.uri: + type: mapping + label: 'URI locator configuration' + mapping: + uri: + type: uri + label: 'The locator URI' \ No newline at end of file