Skip to content

Commit 7f9ff4b

Browse files
committed
Switch to model_json_schema for patch schema.
1 parent 4189df8 commit 7f9ff4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stac_fastapi/extensions/stac_fastapi/extensions/core/transaction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,10 @@ def register_patch_item(self):
205205
},
206206
},
207207
"application/merge-patch+json": {
208-
"schema": TypeAdapter(PartialItem).json_schema(),
208+
"schema": PartialItem.model_json_schema(),
209209
},
210210
"application/json": {
211-
"schema": TypeAdapter(PartialItem).json_schema(),
211+
"schema": PartialItem.model_json_schema(),
212212
},
213213
},
214214
"required": True,

0 commit comments

Comments
 (0)