We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b1cb44 commit 41d8ab0Copy full SHA for 41d8ab0
stac_pydantic/item.py
@@ -20,7 +20,7 @@ class ItemProperties(StacCommonMetadata):
20
"""
21
22
# Overide the datetime field to be required
23
- datetime: Optional[UtcDatetime]
+ datetime: Optional[UtcDatetime] = Field(...)
24
25
# Check https://docs.pydantic.dev/dev-v2/migration/#changes-to-config for more information.
26
model_config = ConfigDict(extra="allow")
tests/example_stac/datetimerange.json
@@ -37,7 +37,7 @@
37
]
38
},
39
"properties":{
40
- "datetime":"2018-01-01T13:21:30Z",
+ "datetime":null,
41
"start_datetime":"2018-01-01T13:21:30Z",
42
"end_datetime":"2018-01-01T13:31:30Z"
43
0 commit comments