Skip to content

Commit 3261893

Browse files
committed
fix(spec): hotfix on pydantic model to be able to read new attrs_spec
format
1 parent cd1ad4d commit 3261893

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/esgvoc/api/project_specs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ class AttributeProperty(BaseModel):
5050
A NetCDF global attribute property specification.
5151
"""
5252

53-
source_collection: str
53+
source_collection: str | None
5454
"The project collection that originated the property."
5555
is_required: bool
5656
"Specifies if the attribute must be present in the NetCDF file."
57-
value_type: str
57+
attr_field_value_type: str
5858
"The type of the attribute value."
5959
specific_key: str | None = None
6060
"Specifies a specific key in the collection."
61-
field_name: str | None = None
61+
attr_field_name: str | None = None
6262
"The name of the attribute field."
63-
default_value: str | None = None
63+
attr_field_na_value: str | None = None
6464
"The default value for the attribute."
6565

6666

0 commit comments

Comments
 (0)