Skip to content

Commit a9086b3

Browse files
authored
Merge branch 'main' into pandas3
2 parents b58dfda + 4b64d8e commit a9086b3

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

petab/schemas/petab_schema.v2.0.0.yaml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
# For syntax see: https://json-schema.org/understanding-json-schema
2-
#$schema: "https://json-schema.org/draft/2019-09/meta/core"
3-
$schema: "http://json-schema.org/draft-06/schema"
4-
description: PEtab parameter estimation problem config file schema
2+
$schema: "https://json-schema.org/draft/2020-12/schema"
3+
description: PEtab 2.0 parameter estimation problem configuration schema.
54

65
definitions:
76
list_of_files:
87
type: array
98
description: List of files.
109
items:
1110
type: string
12-
description: File name or URL.
11+
description: |
12+
File name or URL, absolute or relative to the location of the PEtab
13+
problem configuration file.
1314
version_number:
1415
type: string
1516
pattern: ^([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$
16-
description: Version number (corresponding to PEP 440).
17+
description: Version number.
1718

1819
properties:
1920

2021
format_version:
21-
anyof:
22+
anyOf:
2223
- $ref: "#/definitions/version_number"
2324
- type: integer
24-
description: Version of the PEtab format
25+
description: Version of the PEtab format.
2526

2627
id:
2728
type: string
@@ -32,17 +33,12 @@ properties:
3233
pattern: "^[a-zA-Z_]\\w*$"
3334

3435
parameter_files:
35-
type: array
36-
description: |
37-
List of PEtab parameter files.
38-
items:
39-
type: string
40-
description: |
41-
File name (absolute or relative) or URL to a PEtab parameter table.
36+
description: List of PEtab parameter files.
37+
$ref: "#/definitions/list_of_files"
4238

4339
model_files:
4440
type: object
45-
description: One or multiple models
41+
description: One or multiple models.
4642

4743
# the model ID
4844
patternProperties:
@@ -51,7 +47,9 @@ properties:
5147
properties:
5248
location:
5349
type: string
54-
description: Model file name or URL
50+
description: |
51+
Model file name or URL, absolute or relative to the location of
52+
the PEtab problem configuration file.
5553
language:
5654
type: string
5755
description: |
@@ -94,9 +92,14 @@ properties:
9492
properties:
9593
version:
9694
$ref: "#/definitions/version_number"
97-
95+
required:
96+
type: boolean
97+
description: |
98+
Indicates whether the extension is required for the
99+
mathematical interpretation of the problem.
98100
required:
99101
- version
102+
- required
100103
additionalProperties: true
101104

102105
additionalProperties: false
@@ -107,3 +110,5 @@ required:
107110
- model_files
108111
- observable_files
109112
- measurement_files
113+
114+
additionalProperties: false

0 commit comments

Comments
 (0)