Skip to content

Commit

Permalink
FIX: Add display to schema (equinor#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnatt authored Mar 22, 2024
1 parent aac5aa5 commit 1442842
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
24 changes: 23 additions & 1 deletion schema/definitions/0.8.0/schema/fmu_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,24 @@
"title": "DiscoveryItem",
"type": "object"
},
"Display": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
}
},
"title": "Display",
"type": "object"
},
"FMUCase": {
"properties": {
"description": {
Expand Down Expand Up @@ -1092,6 +1110,9 @@
"data": {
"$ref": "#/$defs/AnyContent"
},
"display": {
"$ref": "#/$defs/Display"
},
"file": {
"$ref": "#/$defs/File"
},
Expand Down Expand Up @@ -1127,7 +1148,8 @@
"fmu",
"access",
"data",
"file"
"file",
"display"
],
"title": "FMUDataClassMeta",
"type": "object"
Expand Down
5 changes: 5 additions & 0 deletions src/fmu/dataio/datastructure/meta/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ class TracklogEvent(BaseModel):
)


class Display(BaseModel):
name: Optional[str] = Field(default=None)


class Context(BaseModel):
"""The internal FMU context in which this data object was produced"""

Expand Down Expand Up @@ -430,6 +434,7 @@ class FMUDataClassMeta(ClassMeta):
access: SsdlAccess
data: content.AnyContent
file: File
display: Display


class Root(
Expand Down

0 comments on commit 1442842

Please sign in to comment.