|
1 | 1 | # Auto generated from oae_data_protocol.yaml by pythongen.py version: 0.0.1 |
2 | | -# Generation date: 2025-11-08T07:32:40 |
| 2 | +# Generation date: 2025-11-13T17:40:14 |
3 | 3 | # Schema: OAEDataManagementProtocol |
4 | 4 | # |
5 | 5 | # id: OAEDataManagementProtocol |
@@ -258,18 +258,14 @@ class VerticalExtent(YAMLRoot): |
258 | 258 | class_name: ClassVar[str] = "VerticalExtent" |
259 | 259 | class_model_uri: ClassVar[URIRef] = OAE.VerticalExtent |
260 | 260 |
|
261 | | - min_depth_in_m: float = None |
262 | | - max_depth_in_m: float = None |
| 261 | + min_depth_in_m: Optional[float] = None |
| 262 | + max_depth_in_m: Optional[float] = None |
263 | 263 |
|
264 | 264 | def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]): |
265 | | - if self._is_empty(self.min_depth_in_m): |
266 | | - self.MissingRequiredField("min_depth_in_m") |
267 | | - if not isinstance(self.min_depth_in_m, float): |
| 265 | + if self.min_depth_in_m is not None and not isinstance(self.min_depth_in_m, float): |
268 | 266 | self.min_depth_in_m = float(self.min_depth_in_m) |
269 | 267 |
|
270 | | - if self._is_empty(self.max_depth_in_m): |
271 | | - self.MissingRequiredField("max_depth_in_m") |
272 | | - if not isinstance(self.max_depth_in_m, float): |
| 268 | + if self.max_depth_in_m is not None and not isinstance(self.max_depth_in_m, float): |
273 | 269 | self.max_depth_in_m = float(self.max_depth_in_m) |
274 | 270 |
|
275 | 271 | super().__post_init__(**kwargs) |
@@ -2055,10 +2051,10 @@ class slots: |
2055 | 2051 | model_uri=OAE.geoCoordinates__longitude, domain=None, range=float) |
2056 | 2052 |
|
2057 | 2053 | slots.verticalExtent__min_depth_in_m = Slot(uri=OAE.min_depth_in_m, name="verticalExtent__min_depth_in_m", curie=OAE.curie('min_depth_in_m'), |
2058 | | - model_uri=OAE.verticalExtent__min_depth_in_m, domain=None, range=float) |
| 2054 | + model_uri=OAE.verticalExtent__min_depth_in_m, domain=None, range=Optional[float]) |
2059 | 2055 |
|
2060 | 2056 | slots.verticalExtent__max_depth_in_m = Slot(uri=OAE.max_depth_in_m, name="verticalExtent__max_depth_in_m", curie=OAE.curie('max_depth_in_m'), |
2061 | | - model_uri=OAE.verticalExtent__max_depth_in_m, domain=None, range=float) |
| 2057 | + model_uri=OAE.verticalExtent__max_depth_in_m, domain=None, range=Optional[float]) |
2062 | 2058 |
|
2063 | 2059 | slots.organization__country = Slot(uri=OAE.country, name="organization__country", curie=OAE.curie('country'), |
2064 | 2060 | model_uri=OAE.organization__country, domain=None, range=Optional[str]) |
|
0 commit comments