Skip to content

Commit 74a97dd

Browse files
committed
add project description
1 parent 72f0733 commit 74a97dd

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

project/jsonschema/oae_data_protocol.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3087,6 +3087,11 @@
30873087
"title": "Co-located Operations",
30883088
"type": "string"
30893089
},
3090+
"description": {
3091+
"description": "A narrative description of the project. For example, what were the goals of the project? What were the research questions? What were the processes to achieve these goals and answer these questions? Who were the key stakeholders, organizers, project leaders? Was this building off a previous or ongoing project, or is this a new region/experiment/mechanistic study?\nIf there are relevant regulatory parameters and/or limits to dosing trials at this location, these may be described here.",
3092+
"title": "Project Description",
3093+
"type": "string"
3094+
},
30903095
"experiments": {
30913096
"items": {
30923097
"$ref": "#/$defs/Experiment"

src/oae_data_protocol/datamodel/oae_data_protocol.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Auto generated from oae_data_protocol.yaml by pythongen.py version: 0.0.1
2-
# Generation date: 2026-01-27T19:47:22
2+
# Generation date: 2026-01-27T20:07:46
33
# Schema: OAEDataManagementProtocol
44
#
55
# id: OAEDataManagementProtocol
@@ -315,6 +315,7 @@ class Project(YAMLRoot):
315315
temporal_coverage: str = None
316316
spatial_coverage: Union[dict, SpatialCoverage] = None
317317
mcdr_pathway: Union[str, "MCDRPathway"] = None
318+
description: Optional[str] = None
318319
experiments: Optional[Union[Union[dict, "Experiment"], List[Union[dict, "Experiment"]]]] = empty_list()
319320
sea_names: Optional[Union[Union[str, "SeaNames"], List[Union[str, "SeaNames"]]]] = empty_list()
320321
physical_site_description: Optional[str] = None
@@ -326,7 +327,6 @@ class Project(YAMLRoot):
326327
research_project: Optional[str] = None
327328
funding: Optional[Union[Union[dict, "MonetaryGrant"], List[Union[dict, "MonetaryGrant"]]]] = empty_list()
328329
additional_details: Optional[str] = None
329-
description: Optional[str] = None
330330

331331
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
332332
if self._is_empty(self.project_id):
@@ -349,6 +349,9 @@ def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
349349
if not isinstance(self.mcdr_pathway, MCDRPathway):
350350
self.mcdr_pathway = MCDRPathway(self.mcdr_pathway)
351351

352+
if self.description is not None and not isinstance(self.description, str):
353+
self.description = str(self.description)
354+
352355
self._normalize_inlined_as_dict(slot_name="experiments", slot_type=Experiment, key_name="description", keyed=False)
353356

354357
if not isinstance(self.sea_names, list):
@@ -382,9 +385,6 @@ def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
382385
if self.additional_details is not None and not isinstance(self.additional_details, str):
383386
self.additional_details = str(self.additional_details)
384387

385-
if self.description is not None and not isinstance(self.description, str):
386-
self.description = str(self.description)
387-
388388
super().__post_init__(**kwargs)
389389

390390

src/oae_data_protocol/schema/oae_project.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ classes:
1212
description: "A project conducting OAE field trials or modeling."
1313
slots:
1414
- project_id
15+
- description
1516
- temporal_coverage
1617
- spatial_coverage
1718
slot_usage:

0 commit comments

Comments
 (0)