chore: Split up settings schema JSON file

pull/231/head
Robert Dailey 1 year ago
parent 1ab44f974c
commit a4dc3c58de

@ -12,11 +12,11 @@
"title": "Settings for any local git clones that Recyclarr manages",
"properties": {
"trash_guides": {
"$ref": "#/$defs/repository",
"$ref": "settings/repository.json",
"title": "Settings for the Trash Guides GitHub repository"
},
"config_templates": {
"$ref": "#/$defs/repository",
"$ref": "settings/repository.json",
"title": "Settings for the Recyclarr Config Templates GitHub repository"
}
}
@ -41,33 +41,5 @@
}
}
}
},
"$defs": {
"repository": {
"type": "object",
"additionalProperties": false,
"properties": {
"clone_url": {
"type": "string",
"format": "uri",
"title": "Clone URL to the trash guides git repository",
"description": "A URL compatible with `git clone` that is used to clone the Trash Guides repository. This setting exists for enthusiasts that may want to instead have Recyclarr pull data from a fork instead of the official repository."
},
"branch": {
"type": "string",
"title": "The name of a branch to check out in the repository"
},
"sha1": {
"type": "string",
"title": "A SHA1 (commit hash) in Git to use",
"description": "If specified, it overrides the `branch` setting. This SHA1 is passed to `git reset --hard` to force your local clone to this specific revision in the repository. If not specified, only the `branch` controls what revision is used in the repo."
},
"git_path": {
"type": "string",
"title": "Provide an explicit path to your git executable",
"description": "Note that this is a path to the actual executable itself and not a directory path. If this setting is not specified, Recyclarr will attempt to find git via your PATH environment variable."
}
}
}
}
}

@ -0,0 +1,28 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/recyclarr/recyclarr/master/schemas/settings/repository.json",
"type": "object",
"additionalProperties": false,
"properties": {
"clone_url": {
"type": "string",
"format": "uri",
"title": "Clone URL to the trash guides git repository",
"description": "A URL compatible with `git clone` that is used to clone the Trash Guides repository. This setting exists for enthusiasts that may want to instead have Recyclarr pull data from a fork instead of the official repository."
},
"branch": {
"type": "string",
"title": "The name of a branch to check out in the repository"
},
"sha1": {
"type": "string",
"title": "A SHA1 (commit hash) in Git to use",
"description": "If specified, it overrides the `branch` setting. This SHA1 is passed to `git reset --hard` to force your local clone to this specific revision in the repository. If not specified, only the `branch` controls what revision is used in the repo."
},
"git_path": {
"type": "string",
"title": "Provide an explicit path to your git executable",
"description": "Note that this is a path to the actual executable itself and not a directory path. If this setting is not specified, Recyclarr will attempt to find git via your PATH environment variable."
}
}
}
Loading…
Cancel
Save