Deposit file
A deposit file describes what a deposit in madbot holds: a workspace, the sources of its data, its nodes on as many levels as needed, with their data, the rules of their samples and of the associations of their data, and their submissions to repositories. madbot-cli plan compares it with madbot; madbot-cli apply creates what is missing. Submit data to a repository, end to end shows it at work.
The file is YAML or JSON, in UTF-8. It is checked before any request to the API: first against the JSON Schema of its version, then against the rules below the schema cannot say. Each error is reported with its path in the file, such as nodes[0].data[1].source.
Versions
Section titled “Versions”version | Read by |
|---|---|
| 1 | madbot-cli 1.x |
A platform often writes the file from its own tools, at its own pace. A new release of madbot-cli keeps reading the versions it read before; a change that would break a file comes with a new version of the format.
Top level
Section titled “Top level”| Key | Required | Value |
|---|---|---|
version | yes | 1. |
workspace | yes | The name of the workspace. It is created when the account has none of that name. |
sources | no | The sources of the data, each under a key of your choice (instrument, code…), which the rest of the file uses to name it. |
nodes | yes | The nodes at the top of the workspace, one or more, each with its child nodes. |
Source
Section titled “Source”A source is declared once for the whole file. Its key stands for one connection: two keys with the same plugin and the same shared parameters are refused, with both keys.
| Key | Required | Value |
|---|---|---|
plugin | yes | The plugin of the source, by its slug or its identifier, as madbot-cli plugins lists them. madbot-cli plugins <slug> gives its shared parameters and its credentials, with a block to paste. |
shared_params | yes | The parameters of the connection shared by the members of the workspace, such as the address of the server. With the plugin, they identify the connection: a workspace has one connection per plugin and shared parameters. madbot-cli connections lists those of your connections, to reuse one made in the web application. |
credentials_env | no | The environment variable holding the credentials of the account, as a JSON object of the private parameters of the plugin. Needed until the account is connected to the source, except for a source whose plugin reads public data without credentials: left out or unset, madbot-cli reads its public data only. |
| Key | Required | Value |
|---|---|---|
title | yes | The title of the node, unique among the nodes of its parent. A node is found by its path of titles from the top of the workspace. |
description | no | The description of a node apply creates. |
data | no | The data to link to the node: a list of data entries, each naming its source. |
samples | no | The rule that makes the samples of the node, from its own data. |
associations | no | The rules that make the associations of the data of the node. |
nodes | no | The child nodes, with the same keys as a node at the top. |
submissions | no | The submissions to repositories of data of the node and of the nodes under it. |
Child nodes
Section titled “Child nodes”A node holds child nodes under its nodes key, on as many levels as needed, each with its own data, samples, associations, submissions and nodes. A node is found by its path of titles, such as Campaign 2026-11 / Segmentation, method A: two nodes of one title under two parents are two nodes, while two nodes of one title under one parent are refused, with the path of the second.
applycreates a missing node under its parent.planreads the tree level by level, only under the nodes of the file, and never the whole workspace.planandstatusshow each node under its parent. A node madbot holds under a node of the file, but the file does not describe, is reported at any depth, and left as it is:applynever deletes.- A node whose path changes in the file is a new node to
apply, and the old one is reported.
The samples of a node are made from the data of that node only. A data linked to two nodes is bound in each node to a sample of that node.
Data entries
Section titled “Data entries”A data entry has a source, the key of a source at the top of the file, and one of the forms below. A node takes the first three; a submission takes all five.
| Form | Designates |
|---|---|
external_id | A data, by its identifier in the source, whose format belongs to the plugin. name, optional, is shown until madbot has read the data, and lets plan foresee its sample. |
browse with path and match | The data of a folder of the source whose name matches a shell-style pattern (*, ?, […]), * by default. path gives the names of the containers to open from the root of the source; a name YAML reads as a number, such as 2026 or 01, is taken as the text written, 01 included. An exact name designates one file. |
browse with path and names | The data of a folder of the source, named one by one. |
match alone, in a submission | The data of the source already linked to the node whose name in madbot matches the pattern, whatever their folder. |
names alone, in a submission | The data of the source already linked to the node, named one by one by their name in madbot. |
In a submission, an entry also takes via: see The node a data goes through.
match and names do not go together in one entry. Naming a file says it must exist: a name not found is an error of plan, and apply links nothing of a browse entry with such a name.
plan turns a browse entry into identifiers by browsing the source, once the account is connected to it. match and names alone read the names madbot holds, without reading the source again: a data madbot has not read yet may not have its final name, and plan says so.
data: - source: code external_id: eyJwcm9qZWN0IjoxMjM0LCJwYXRoIjoic2VnbWVudC5weSJ9 name: segment.py - source: instrument browse: path: [campaign-2026-11, raw] match: "*.tif" - source: instrument browse: path: [campaign-2026-11, calibration] names: [dark-frame.tif, flat-field.tif]Samples
Section titled “Samples”| Key | Required | Value |
|---|---|---|
pattern | yes | A regular expression searched in the name of each data. Its named group sample gives the name of the sample; its alias is made as the web application makes it: accents dropped, lower case, every character other than a letter, a digit or a space removed, spaces replaced by - (plate3_wellB04 gives plate3wellb04). Data whose name does not match are left alone. |
from | no | The keys of the sources, at the top of the file, whose data make the samples. All the data of the node by default, those linked from the web application too. |
A sample is found again by its alias in the node, else by its title: a sample created in the web application, even with an alias typed by hand, is not created twice.
Associations
Section titled “Associations”An association groups data of a node that go together: the two files of paired reads, an assembly and the reads it was built from, or any other set. A repository that needs them, such as one of sequencing reads, receives the data with their associations.
Describe the files of paired reads with a paired association. Without it, a repository of reads sees each file as a run of its own: ENA makes a run and a sample object per file, the two files of one sample give two sample objects of the same alias, and ENA refuses the deposit. plan shows these objects twice, and fields writes the alias once, with how many objects it names. Each association has a type, and each type its metadata fields:
| Type | For | Fields |
|---|---|---|
paired | The files of paired reads. | library_layout |
assembly | An assembly and the reads it was built from. | assembly |
other | Any other set of data. | none |
associations is a list of rules, each making associations of one type from the data of the node:
| Key | Required | Value |
|---|---|---|
type | yes, except with suggested | paired, assembly or other. With suggested, keeps the suggestions of that type only. |
pattern | one of these three | A regular expression searched in the name of each data. Its named group group gives the association: the data of one group make one association. A group of one data makes none, and plan says so. |
list | one of these three | The associations one by one, each with a name and its data: a list of names, each among the data of the node, with source when two sources have data of that name. |
suggested | one of these three | true: the associations madbot suggests for the data of the node, as the web application shows them. madbot suggests them once the data are linked: the first plan cannot show them yet. |
from | no | With pattern or suggested, the keys of the sources whose data the rule takes. All the data of the node by default. |
metadata | no | The values of the fields of the type, by field slug, for every association of the rule. |
by_group | no | With pattern or list, the values of one association, by its group or name. They complete those of metadata, key by key. |
An association is found again by its data: the one madbot holds with exactly the data of a group is that group’s, whoever made it. apply creates the associations before the submissions of the node and above, then writes the values the file gives. A data in two associations of one type, by two rules or two groups, is an error of plan, and neither is created; a data may belong to associations of two types, such as a pair and an assembly.
plan checks each value against the schema of its field and names, association by association, the mandatory values still missing; madbot-cli field library_layout tells what a field accepts. madbot sets the type of an association once: plan warns when the type of an association in madbot is not the one of the file, and apply keeps the one of madbot.
The example below is applied by the madbot CI, against test plugins:
# A deposit with data associations, for madbot-cli (format version 1).## A sequencing platform deposits a run: each sample is read in pairs of files# (R1 and R2), the reads of one sample were assembled, and the run sheet goes# with its quality report. Replace every <…> value, as in deposit.example.yaml.version: 1workspace: Sequencing platformsources: sequencer: plugin: <data plugin of the sequencing server> shared_params: host: sequencer.example.org credentials_env: SEQUENCER_CREDENTIALSnodes: - title: Run 07 data: - source: sequencer browse: path: [run-07] samples: from: [sequencer] pattern: "^(?P<sample>S\\d+)_" # The associations of the data of the node, rule after rule. associations: # The two files of a pair share a group: one association per group. - type: paired from: [sequencer] pattern: "^(?P<group>S\\d+)_R[12]_001\\.fastq\\.gz$" # The values of the fields of the type, for every pair... metadata: library_layout: library_layout: PAIRED library_selection: RANDOM # ...completed pair by pair, key by key. by_group: S1: library_layout: nominal_length: 350 S2: library_layout: nominal_length: 420 # The assembly and the reads it was built from, as madbot suggests them. - type: assembly suggested: true metadata: assembly: assembly_type: clone or isolate assembly_level: contig coverage: 60 program: SPAdes 3.15 platform: Illumina NovaSeq 6000 # Data that go together, given one by one by their names. - type: other list: - name: run sheet data: - names: [run-07-samplesheet.csv, run-07-qc.html] submissions: - title: Run 07, reads repository: plugin: <submission plugin of the read repository> shared_params: host: reads.repository.example.org credentials_env: READ_REPOSITORY_CREDENTIALS settings: <setting of the read repository>: <its value> # The repository receives each pair with its association. data: - source: sequencer match: "*.fastq.gz"Submission
Section titled “Submission”| Key | Required | Value |
|---|---|---|
title | yes | The title of the submission, unique in the file and in the workspace. |
repository | yes | plugin, shared_params and credentials_env, as for a source, and settings: the settings of the submission the repository asks for, such as a checklist. madbot-cli plugins <slug> lists them, with the values each one allows. |
data | yes | The data the submission takes, among those of its node and of the nodes under it: all: true, every data of that subtree, those linked from the web application too, with via when a data is linked to several of its nodes; or a list of data entries. A data enters the submission once, even when several entries or nodes designate it. An entry that designates a data no node of the subtree holds is an error of plan, and apply does not add it. |
metadata | no | The values of the metadata the repository asks for. |
metadata holds, for each type of metadata object of the repository (study, sample…), the value of each field by its slug. These values apply to every object of the type. Under by_alias, the values of one object, found by its alias (a value of its summary fields, such as the alias of a sample):
metadata: study: repository__study__description: Water quality of the river, season 2026 sample: repository__sample__depth: 0.5 by_alias: station-upstream: repository__sample__collection_date: "2026-03-01"madbot-cli fields <file> <title> lists the fields of a submission, by type, with their level; --level mandatory or --level recommended keeps only those, and an object field is written with its parts. madbot-cli field <slug> tells what one field accepts, with an example. Each value is checked by madbot against the schema of its field. An empty value is no value: apply never clears one. The file wins over a value changed in the web application; plan shows both before apply writes it.
An object keeps the key it has under by_alias when one of its values changes, its alias included: a repository that names its objects after a generic title, such as raw_read1, finds them by that title. Several people who deposit with one account of a repository need aliases of their own, since the repository refuses an alias it already holds; give them under by_alias:
metadata: raw_read: by_alias: raw_read1: repository__raw_read__alias: lev01-v08 raw_read2: repository__raw_read__alias: lev02-v08A slug the repository does not have, or that belongs to another type, is an error of plan, with the closest slugs. A text written in the editor of madbot, such as a description, is given as plain text, or as Markdown: madbot makes its paragraphs.
A submission already sent to its repository is never changed.
The node a data goes through
Section titled “The node a data goes through”In a submission, a data goes through one node, whose datalink it uses: its inherited metadata come from that node, the parents of that node, and the samples of that node it is bound to. When a data is linked to one node of the subtree, it goes through that node. When it is linked to several, plan refuses the entry, with the data and their nodes, until via says which one:
via | The node |
|---|---|
Segmentation, method A | the child node of that title |
[Segmentation, method A, Quality control] | the node at that path, under the node of the submission |
[] | the node of the submission itself |
via only chooses among the nodes of a data: a data linked to one node goes through it, and plan warns when the via of an entry names another node. plan names the node of each data it adds, when the submission has nodes under its own.
apply does not move a data already in the submission: when via changes afterwards, plan and status say which node the data goes through and which one the file chooses, and apply --submit does not send the submission. Remove the data from the submission in the web application, then run apply again.
A submission takes its data once every node under it is applied: when one of them fails, or misses data of the file in a source the submission takes data from, apply leaves the submission for its next run rather than send it without them.
The example below is applied by the madbot CI, against test plugins:
# A deposit in madbot on several levels of nodes, for madbot-cli (format# version 1).## An imaging platform segments the raw images of a campaign with two methods.# The campaign is a node, with a child node per method: each child node holds# the raw images and the masks its method made from them. The raw images go to# the image repository once, through the node of one method, whose metadata# they inherit. Replace every <…> value, as in deposit.example.yaml.version: 1workspace: Imaging platformsources: instrument: plugin: <data plugin of the storage server> shared_params: host: storage.example.org credentials_env: INSTRUMENT_CREDENTIALSnodes: - title: Campaign 2026-11 # The child nodes, with the same keys as a node at the top. nodes: - title: Segmentation, method A data: # The same raw images are linked to both child nodes. - source: instrument browse: path: [campaign-2026-11, raw] match: "*.tif" - source: instrument browse: path: [campaign-2026-11, analysis, method-a] # The samples of a node gather the data of that node only. samples: from: [instrument] pattern: "^(?P<sample>plate\\d+_well[A-H]\\d+)_" - title: Segmentation, method B data: - source: instrument browse: path: [campaign-2026-11, raw] match: "*.tif" - source: instrument browse: path: [campaign-2026-11, analysis, method-b] samples: from: [instrument] pattern: "^(?P<sample>plate\\d+_well[A-H]\\d+)_" # A submission takes its data in its node and the nodes under it. submissions: - title: Campaign 2026-11, raw images repository: plugin: <submission plugin of the image repository> shared_params: host: images.repository.example.org credentials_env: IMAGE_REPOSITORY_CREDENTIALS settings: <setting of the image repository>: <its value> data: # The images are linked to both methods: via says which node they go # through, and so where their inherited metadata come from. - source: instrument match: "*.tif" via: Segmentation, method A metadata: study: <study description field>: Time-lapse imaging of cell growth, campaign of November 2026 sample: <sample place field>: Imaging facility, room 2 by_alias: plate3wellb04: <sample date field>: "2026-11-02" plate3wellc01: <sample date field>: "2026-11-03" - title: Campaign 2026-11, masks of method B repository: plugin: <submission plugin of the image repository> shared_params: host: images.repository.example.org credentials_env: IMAGE_REPOSITORY_CREDENTIALS settings: <setting of the image repository>: <its value> data: # Files linked to one node only need no via. - source: instrument browse: path: [campaign-2026-11, analysis, method-b] names: [plate3_wellB04_masks.csv, plate3_wellC01_masks.csv] metadata: study: <study description field>: Cell masks of campaign 2026-11, segmentation method B sample: <sample place field>: Imaging facility, room 2 <sample date field>: "2026-11-04"What apply never does
Section titled “What apply never does”- Delete or unlink anything: what madbot holds outside the file is reported by
planand left as it is. - Change the type of an association, or remove a data from one.
- Send a submission without
--submit. - Change a deposit already made in a repository.
JSON Schema
Section titled “JSON Schema”The schema of version 1, also shipped in the package (madbot_cli/schemas/deposit-v1.schema.json). An editor that reads JSON Schema can check a file as you write it.
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://docs.madbot.france-bioinformatique.fr/schemas/madbot-cli/deposit-v1.schema.json", "title": "madbot deposit file, version 1", "description": "What a deposit in madbot holds: a workspace, the sources of its data, its nodes, for each node its data, the rule of its samples, and its submissions to repositories. madbot-cli plan compares it with madbot; madbot-cli apply creates what is missing and never deletes anything.", "type": "object", "required": ["version", "workspace", "nodes"], "additionalProperties": false, "properties": { "version": { "description": "The version of the format. A file keeps working with the releases of madbot-cli that read its version.", "const": 1 }, "workspace": { "description": "The name of the workspace, created when the account has none of that name.", "type": "string", "minLength": 1 }, "sources": { "description": "The sources of the data of the file, each under a key the file uses to refer to it. A key stands for one connection: two keys cannot have the same plugin and shared parameters.", "type": "object", "propertyNames": { "$ref": "#/$defs/key" }, "additionalProperties": { "$ref": "#/$defs/source" } }, "nodes": { "description": "The nodes at the top of the workspace, each found by its title.", "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/node" } } }, "$defs": { "key": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$" }, "envName": { "description": "The name of an environment variable.", "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" }, "plugin": { "description": "The plugin, by its slug (as GET /api/plugins lists it) or its identifier.", "type": "string", "minLength": 1 }, "sharedParams": { "description": "The parameters of the connection shared by the members of the workspace, such as the address of the source. With the plugin, they identify the connection.", "type": "object", "additionalProperties": { "type": ["string", "number", "boolean"] } }, "source": { "type": "object", "required": ["plugin", "shared_params"], "additionalProperties": false, "properties": { "plugin": { "$ref": "#/$defs/plugin" }, "shared_params": { "$ref": "#/$defs/sharedParams" }, "credentials_env": { "$ref": "#/$defs/envName", "description": "The environment variable holding the credentials of the account for the source, as a JSON object. Needed only until the account is connected to the source; a source whose plugin reads public data may go without, its public data only." } } }, "node": { "type": "object", "required": ["title"], "additionalProperties": false, "properties": { "title": { "description": "The title of the node, unique among the nodes of its parent. A node is found by the path of titles from the top of the workspace.", "type": "string", "minLength": 1 }, "description": { "description": "The description of a node created by apply.", "type": "string" }, "data": { "description": "The data to link to the node, each from a source of the file.", "type": "array", "items": { "$ref": "#/$defs/nodeData" } }, "samples": { "$ref": "#/$defs/samples" }, "associations": { "description": "The rules that make associations of the data of the node: paired reads, an assembly and its reads, others.", "type": "array", "items": { "$ref": "#/$defs/associationRule" } }, "nodes": { "description": "The child nodes of the node, described as the node itself, on as many levels as needed.", "type": "array", "items": { "$ref": "#/$defs/node" } }, "submissions": { "description": "The submissions of data of the node and its child nodes to repositories.", "type": "array", "items": { "$ref": "#/$defs/submission" } } } }, "sourceKey": { "$ref": "#/$defs/key", "description": "The key of a source at the top of the file." }, "nodeData": { "description": "A data entry of a node: external_id, or browse with path and match or names.", "oneOf": [ { "$ref": "#/$defs/externalIdEntry" }, { "$ref": "#/$defs/browseEntry" } ] }, "submissionData": { "description": "A data entry of a submission: one of the forms of a node, or match or names alone, among the data already linked.", "oneOf": [ { "$ref": "#/$defs/externalIdEntry" }, { "$ref": "#/$defs/browseEntry" }, { "$ref": "#/$defs/matchEntry" }, { "$ref": "#/$defs/namesEntry" } ] }, "externalIdEntry": { "type": "object", "description": "A data given by its external identifier, whose format belongs to the plugin.", "required": ["source", "external_id"], "additionalProperties": false, "properties": { "source": { "$ref": "#/$defs/sourceKey" }, "external_id": { "type": "string", "minLength": 1 }, "name": { "description": "The name shown until madbot has read the data, used by the plan to foresee samples.", "type": "string" }, "via": { "$ref": "#/$defs/via" } } }, "browseEntry": { "type": "object", "description": "The data found in a folder of the source, by following a path of names: those whose name matches a pattern, or those named one by one.", "required": ["source", "browse"], "additionalProperties": false, "properties": { "source": { "$ref": "#/$defs/sourceKey" }, "browse": { "type": "object", "required": ["path"], "additionalProperties": false, "not": { "required": ["match", "names"] }, "properties": { "path": { "description": "The names of the containers to open, from the root of the source.", "type": "array", "items": { "type": "string", "minLength": 1 } }, "match": { "description": "A shell-style pattern the names must match, such as *.csv; an exact name gives one file.", "type": "string", "minLength": 1, "default": "*" }, "names": { "$ref": "#/$defs/names" } } }, "via": { "$ref": "#/$defs/via" } } }, "matchEntry": { "type": "object", "description": "The data of the source already linked, whose name in madbot matches a shell-style pattern, whatever their folder.", "required": ["source", "match"], "additionalProperties": false, "properties": { "source": { "$ref": "#/$defs/sourceKey" }, "match": { "type": "string", "minLength": 1 }, "via": { "$ref": "#/$defs/via" } } }, "namesEntry": { "type": "object", "description": "The data of the source already linked, named one by one by their name in madbot.", "required": ["source", "names"], "additionalProperties": false, "properties": { "source": { "$ref": "#/$defs/sourceKey" }, "names": { "$ref": "#/$defs/names" }, "via": { "$ref": "#/$defs/via" } } }, "names": { "description": "The names of the data, each of which must exist.", "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }, "via": { "description": "In a submission, the node a data goes through when it is linked to several nodes of the subtree: the title of a child node, or the path of titles under the node of the submission; [] for the node of the submission itself. The inherited metadata come from that node.", "oneOf": [ { "type": "string", "minLength": 1 }, { "type": "array", "items": { "type": "string", "minLength": 1 } } ] }, "samples": { "description": "The rule that groups the data of the node into samples.", "type": "object", "required": ["pattern"], "additionalProperties": false, "properties": { "pattern": { "description": "A regular expression searched in each data name; its (?P<sample>...) group gives the sample name. Data whose name does not match are left alone.", "type": "string", "minLength": 1 }, "from": { "description": "The keys of the sources, at the top of the file, whose data make the samples; all the data of the node when absent.", "type": "array", "items": { "$ref": "#/$defs/sourceKey" } } } }, "associationRule": { "description": "A rule that makes associations of one type from the data of the node, by a pattern, one by one in a list, or from the suggestions of madbot.", "type": "object", "additionalProperties": false, "properties": { "type": { "description": "The type of the associations: paired (paired reads), assembly (an assembly and its reads) or other. With suggested, keeps the suggestions of that type only.", "enum": ["paired", "assembly", "other"] }, "pattern": { "description": "A regular expression searched in each data name; its (?P<group>...) group gives the association. Data whose name does not match are left alone.", "type": "string", "minLength": 1 }, "from": { "description": "The keys of the sources, at the top of the file, whose data the rule takes; all the data of the node when absent.", "type": "array", "items": { "$ref": "#/$defs/sourceKey" } }, "list": { "description": "The associations, given one by one.", "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/listedAssociation" } }, "suggested": { "description": "Make the associations madbot suggests for the data of the node.", "const": true }, "metadata": { "description": "The values of the fields of the type, by field slug, for every association of the rule.", "$ref": "#/$defs/associationValues" }, "by_group": { "description": "The values of the fields of the type for one association, by its group (pattern) or name (list); completes metadata, key by key.", "type": "object", "additionalProperties": { "$ref": "#/$defs/associationValues" } } }, "oneOf": [ { "required": ["type", "pattern"] }, { "required": ["type", "list"] }, { "required": ["suggested"] } ] }, "listedAssociation": { "type": "object", "required": ["name", "data"], "additionalProperties": false, "properties": { "name": { "description": "The name of the association in the file, the key of its values in by_group.", "type": "string", "minLength": 1 }, "data": { "description": "Its data, two or more, by their names among the data of the node.", "type": "array", "minItems": 1, "items": { "type": "object", "required": ["names"], "additionalProperties": false, "properties": { "source": { "description": "The source of the data, when names alone are not enough.", "$ref": "#/$defs/sourceKey" }, "names": { "$ref": "#/$defs/names" } } } } } }, "associationValues": { "type": "object", "additionalProperties": true }, "submission": { "type": "object", "required": ["title", "repository", "data"], "additionalProperties": false, "properties": { "title": { "description": "The title of the submission, unique in the file and in the workspace.", "type": "string", "minLength": 1 }, "repository": { "type": "object", "required": ["plugin", "shared_params"], "additionalProperties": false, "properties": { "plugin": { "$ref": "#/$defs/plugin" }, "shared_params": { "$ref": "#/$defs/sharedParams" }, "credentials_env": { "$ref": "#/$defs/envName", "description": "The environment variable holding the credentials of the account for the repository, as a JSON object." }, "settings": { "description": "The settings of the submission the repository asks for, such as a checklist.", "type": "object" } } }, "data": { "$ref": "#/$defs/selection" }, "metadata": { "description": "The values of the metadata the repository asks for, by type of metadata object (such as study or sample), then by field slug. The file wins over a value changed in the web application.", "type": "object", "propertyNames": { "$ref": "#/$defs/key" }, "additionalProperties": { "$ref": "#/$defs/metadataValues" } } } }, "selection": { "description": "The data the submission takes, among those of its node and its child nodes: all: true, every data of the subtree, those linked from the web application too; or a list of data entries, each naming its source.", "oneOf": [ { "type": "object", "required": ["all"], "additionalProperties": false, "properties": { "all": { "const": true }, "via": { "$ref": "#/$defs/via" } } }, { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/submissionData" } } ] }, "metadataValues": { "description": "Field slug: value, for every object of the type; by_alias: the values of one object, found by its alias (a value of its summary fields).", "type": "object", "properties": { "by_alias": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "$ref": "#/$defs/value" } } } }, "additionalProperties": { "$ref": "#/$defs/value" } }, "value": { "description": "A value of metadata, checked by madbot against the schema of its field.", "not": { "type": "null" } } }}
